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:
- 546 Bytes
1 | class <%= class_name.underscore.camelize %> < ActiveRecord::Migration |
2 | def self.up<% attributes.each do |attribute| %> |
3 | <%= migration_action %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'add' %>, :<%= attribute.type %><% end -%> |
4 | <%- end %> |
5 | end |
6 | |
7 | def self.down<% attributes.reverse.each do |attribute| %> |
8 | <%= migration_action == 'add' ? 'remove' : 'add' %>_column :<%= table_name %>, :<%= attribute.name %><% if migration_action == 'remove' %>, :<%= attribute.type %><% end -%> |
9 | <%- end %> |
10 | end |
11 | end |
12 |