Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 15
- Log:
Attempt to update Typo to a Typo SVN HEAD release from around the
time the prototype installation was set up on the RISC OS Open Limited
web site. Timestamps place this at 04-Jul so a revision from 05-Jul or
earlier was pulled and copied over the 2.6.0 tarball stable code.
- Author:
- adh
- Date:
- Sat Jul 22 23:27:35 +0100 2006
- Size:
- 1115 Bytes
1 | class Bare34Content < ActiveRecord::Base |
2 | include BareMigration |
3 | end |
4 | |
5 | class BoolifyPublished < ActiveRecord::Migration |
6 | def self.up |
7 | STDERR.puts "Boolifying contents.published" |
8 | modify_tables_and_update([:rename_column, Bare34Content, :published, :old_pub], |
9 | [:add_column, Bare34Content, :published, :boolean, { :default => true }]) do |c| |
10 | unless $schema_generator |
11 | if c.old_pub.nil? |
12 | c.published = true |
13 | else |
14 | c.published = (!c.old_pub.to_i.zero? ? true : false) |
15 | end |
16 | end |
17 | end |
18 | remove_column :contents, :old_pub |
19 | end |
20 | |
21 | def self.down |
22 | STDERR.puts "Un-Boolifying contents.published" |
23 | modify_tables_and_update([:rename_column, Bare34Content, :published, :old_pub], |
24 | [:add_column, Bare34Content, :published, :integer]) do |c| |
25 | unless $schema_generator |
26 | say "Old published: #{c.old_pub}" |
27 | if c.old_pub.nil? |
28 | c.published = 1 |
29 | else |
30 | c.published = c.old_pub ? 1 : 0 |
31 | end |
32 | end |
33 | end |
34 | remove_column :contents, :old_pub |
35 | end |
36 | end |