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:
- 1243 Bytes
1 | class AddCategorizationModel < ActiveRecord::Migration |
2 | class ArticlesCategory < ActiveRecord::Base |
3 | include BareMigration |
4 | end |
5 | |
6 | class Categorization < ActiveRecord::Base |
7 | include BareMigration |
8 | end |
9 | |
10 | def self.up |
11 | create_table :categorizations do |t| |
12 | t.column :article_id, :integer |
13 | t.column :category_id, :integer |
14 | t.column :is_primary, :boolean |
15 | end |
16 | |
17 | unless $schema_generator |
18 | ArticlesCategory.find(:all).each do |ac| |
19 | Categorization.create!(:article_id => ac.article_id, |
20 | :category_id => ac.category_id, |
21 | :is_primary => (ac.is_primary == 1)) |
22 | end |
23 | end |
24 | |
25 | drop_table :articles_categories |
26 | end |
27 | |
28 | def self.down |
29 | create_table :articles_categories, :id => false do |t| |
30 | t.column :article_id, :integer |
31 | t.column :category_id, :integer |
32 | t.column :is_primary, :integer |
33 | end |
34 | |
35 | unless $schema_generator |
36 | Categorization.find(:all).each do |c| |
37 | ArticlesCategory.create!(:article_id => c.article_id, |
38 | :category_id => c.category_id, |
39 | :is_primary => c.is_primary ? 1 : 0) |
40 | end |
41 | end |
42 | |
43 | drop_table :categorizations |
44 | end |
45 | end |