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:
- 515 Bytes
1 | class MigrationGenerator < Rails::Generator::NamedBase |
2 | def manifest |
3 | record do |m| |
4 | m.migration_template 'migration.rb', 'db/migrate', :assigns => get_local_assigns |
5 | end |
6 | end |
7 | |
8 | |
9 | private |
10 | def get_local_assigns |
11 | returning(assigns = {}) do |
12 | if class_name.underscore =~ /^(add|remove)_.*_(?:to|from)_(.*)/ |
13 | assigns[:migration_action] = $1 |
14 | assigns[:table_name] = $2.pluralize |
15 | else |
16 | assigns[:attributes] = [] |
17 | end |
18 | end |
19 | end |
20 | end |