Mercurial > hg > soundsoftware-site
comparison .svn/pristine/5b/5ba4b3bae1ac655e0a9cb68df6a092b2c3782db0.svn-base @ 909:cbb26bc654de redmine-1.3
Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author | Chris Cannam |
---|---|
date | Fri, 24 Feb 2012 19:09:32 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
908:c6c2cbd0afee | 909:cbb26bc654de |
---|---|
1 class <%= migration_name %> < ActiveRecord::Migration | |
2 def self.up | |
3 create_table :<%= table_name %> do |t| | |
4 <% for attribute in attributes -%> | |
5 t.column :<%= attribute.name %>, :<%= attribute.type %> | |
6 <% end -%> | |
7 end | |
8 end | |
9 | |
10 def self.down | |
11 drop_table :<%= table_name %> | |
12 end | |
13 end |