Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 193
- Log:
First stage commit of Typo 4.1, modified for the ROOL site.
Includes all local modifications but a final pass needs to be
made to delete any files left over from earlier Typo versions
that shouldn't be here anymore. See the 'tags' section of the
repository for a clean Typo 4.1 tree.Note that symlinks to shared files in the RISC OS Open theme
directory have been deliberately included this time around; I
decided that on balance it was better to leave them in as
placeholders, since unlike symlinks in app/views/shared, the
Typo theme structure is not a standard Rails concept.
- Author:
- rool
- Date:
- Wed Apr 04 18:51:02 +0100 2007
- Size:
- 864 Bytes
1 | class CreateNotifications < ActiveRecord::Migration |
2 | class OldNotification < ActiveRecord::Base |
3 | end |
4 | |
5 | class Notification < ActiveRecord::Base |
6 | end |
7 | |
8 | def self.up |
9 | rename_table :notifications, :old_notifications |
10 | create_table :notifications do |t| |
11 | t.column :content_id, :integer |
12 | t.column :user_id, :integer |
13 | t.column :created_at, :datetime |
14 | t.column :updated_at, :datetime |
15 | end |
16 | |
17 | OldNotification.reset_column_information |
18 | Notification.reset_column_information |
19 | if $schema_generator |
20 | OldNotification.find(:all).each do |on| |
21 | Notification.create!(on.attributes) |
22 | end |
23 | end |
24 | drop_table :old_notifications |
25 | end |
26 | |
27 | def self.down |
28 | remove_column :notifications, :id |
29 | rename_column :notifications, :user_id, :notify_user_id |
30 | rename_column :notifications, :content_id, :notify_content_id |
31 | end |
32 | end |