Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 71
- Log:
Start of upgrade to Typo 4.0.0, the latest stable release since
2.6.0. Note test/mocks/themes/azure changes from a file to a
directory, so the file has been removed in this revision and
the directory will be added in the next revision.
- Author:
- adh
- Date:
- Mon Aug 07 22:18:11 +0100 2006
- Size:
- 572 Bytes
1 | class AddContentStateField < ActiveRecord::Migration |
2 | class Content < ActiveRecord::Base |
3 | include BareMigration |
4 | end |
5 | |
6 | def self.up |
7 | modify_tables_and_update(:add_column, Content, |
8 | :state, :text) do |content| |
9 | unless $schema_generator |
10 | if content.published? |
11 | content.state = 'Published' |
12 | elsif content.published_at |
13 | content.state = 'PublicationPending' |
14 | else |
15 | content.state = 'Draft' |
16 | end |
17 | end |
18 | end |
19 | end |
20 | |
21 | def self.down |
22 | remove_column :contents, :state |
23 | end |
24 | end |