Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 1428 Bytes
1 | Description: |
2 | The extension_migration generator creates a stub for a new migration for an |
3 | extension. |
4 | |
5 | The generator takes the extension name, a migration name as its arguments, |
6 | and an optional list of attribute pairs as arguments. The migration name |
7 | may be given in CamelCase or under_score. |
8 | |
9 | You can name your migration in either of these formats to generate add/remove |
10 | column lines from supplied attributes: AddColumnsToTable or RemoveColumnsFromTable |
11 | |
12 | A migration class is generated in vendor/extensions/extension_name/db/migrate |
13 | prefixed by a timestamp of the current date and time. |
14 | |
15 | Examples: |
16 | `./script/generate extension_migration MyExt AddSslFlag` |
17 | |
18 | If the current date is May 14, 2008 and the current time 09:09:12, this creates the AddSslFlag migration |
19 | vendor/extensions/my_ext/db/migrate/20080514090912_add_ssl_flag.rb |
20 | |
21 | `./script/generate migration MyExt AddTitleBodyToPost title:string body:text published:boolean` |
22 | |
23 | This will create the AddTitleBodyToPost in vendor/extensions/my_ext/db/migrate/20080514090912_add_title_body_to_post.rb |
24 | with this in the Up migration: |
25 | |
26 | add_column :posts, :title, :string |
27 | add_column :posts, :body, :text |
28 | add_column :posts, :published, :boolean |
29 | |
30 | And this in the Down migration: |
31 | |
32 | remove_column :posts, :published |
33 | remove_column :posts, :body |
34 | remove_column :posts, :title |