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:
- 920 Bytes
1 | class MoveFeedbackToNewStateMachine < ActiveRecord::Migration |
2 | class Content < ActiveRecord::Base |
3 | include BareMigration |
4 | end |
5 | |
6 | def self.up |
7 | return if $schema_generator |
8 | Content.find(:all, |
9 | :conditions => ['type = ? or type = ?', |
10 | 'Trackback', 'Comment']).each do |c| |
11 | c.state = if c.published? |
12 | 'ContentState::PresumedHam' |
13 | else |
14 | 'ContentState::PresumedSpam' |
15 | end |
16 | c.save! |
17 | end |
18 | end |
19 | |
20 | def self.down |
21 | return if $schema_generator |
22 | Content.find(:all, |
23 | :conditions => ['type = ? or type = ?', |
24 | 'Trackback', 'Comment']).each do |c| |
25 | c.state = if c.published? |
26 | 'ContentState::Published' |
27 | else |
28 | 'ContentState::Withdrawn' |
29 | end |
30 | c.save! |
31 | end |
32 | end |
33 | end |