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:
- 1564 Bytes
1 | class Bare35Content < ActiveRecord::Base |
2 | include BareMigration |
3 | end |
4 | |
5 | class BoolifyContentAllowFoo < ActiveRecord::Migration |
6 | def self.up |
7 | STDERR.puts "Boolifying contents.allow_(comments|pings)" |
8 | |
9 | modify_tables_and_update([:rename_column, Bare35Content, :allow_pings, :old_ap], |
10 | [:add_column, Bare35Content, :allow_pings, :boolean], |
11 | [:rename_column, Bare35Content, :allow_comments, :old_ac], |
12 | [:add_column, Bare35Content, :allow_comments, :boolean]) do |c| |
13 | unless $schema_generator |
14 | c.allow_pings = !c.old_ap.to_i.zero? ? true : false unless c.old_ap.nil? |
15 | c.allow_comments = !c.old_ac.to_i.zero? ? true : false unless c.old_ac.nil? |
16 | end |
17 | end |
18 | remove_column :contents, :old_ap |
19 | remove_column :contents, :old_ac |
20 | end |
21 | |
22 | def self.down |
23 | STDERR.puts "Un-Boolifying contents.allow_(comments|pings)" |
24 | modify_tables_and_update([:rename_column, Bare35Content, :allow_pings, :old_ap], |
25 | [:add_column, Bare35Content, :allow_pings, :integer], |
26 | [:rename_column, Bare35Content, :allow_comments, :old_ac], |
27 | [:add_column, Bare35Content, :allow_comments, :integer]) do |c| |
28 | unless $schema_generator |
29 | c.allow_pings = c.old_ap ? 1 : 0 unless c.old_ap.nil? |
30 | c.allow_comments = c.old_ac ? 1 : 0 unless c.old_ac.nil? |
31 | end |
32 | end |
33 | remove_column :contents, :old_ap |
34 | remove_column :contents, :old_ac |
35 | end |
36 | end |