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:
- 492 Bytes
1 | class AddArticleUserId < ActiveRecord::Migration |
2 | class BareArticle < ActiveRecord::Base |
3 | include BareMigration |
4 | end |
5 | |
6 | class BareUser < ActiveRecord::Base |
7 | include BareMigration |
8 | end |
9 | |
10 | def self.up |
11 | STDERR.puts "Linking article authors to users" |
12 | modify_tables_and_update(:add_column, BareArticle, :user_id, :integer) do |art| |
13 | art.user_id = (BareUser.find_by_name(art.author).id rescue nil) |
14 | end |
15 | end |
16 | |
17 | def self.down |
18 | remove_column :articles, :user_id |
19 | end |
20 | end |