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:
- 518 Bytes
1 | class AddCommentUserId < ActiveRecord::Migration |
2 | class BareComment < ActiveRecord::Base |
3 | include BareMigration |
4 | end |
5 | |
6 | class BareUser < ActiveRecord::Base |
7 | include BareMigration |
8 | end |
9 | |
10 | def self.up |
11 | id_for_address = BareUser.find(:all).inject({}) do |h, u| |
12 | h.merge({ u.email => u.id }) |
13 | end |
14 | |
15 | modify_tables_and_update(:add_column, BareComment, :user_id, :integer) do |c| |
16 | c.user_id = id_for_address[c.email] |
17 | end |
18 | end |
19 | |
20 | def self.down |
21 | remove_column :comments, :user_id |
22 | end |
23 | end |