##// END OF EJS Templates
r18549@gaspard (orig r1813): winterheart | 2008-09-13 18:30:03 +0200...
r18549@gaspard (orig r1813): winterheart | 2008-09-13 18:30:03 +0200 fixed #1635, merged changes to trunk, sorting all strings git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1842 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1785:f7acdd1afde3
r1840:319bbed456a6
Show More
migration.rb
13 lines | 294 B | text/x-ruby | RubyLexer
Jean-Philippe Lang
Merged hooks branch @ r1785 into trunk....
r1785 class <%= migration_name %> < ActiveRecord::Migration
def self.up
create_table :<%= table_name %> do |t|
<% for attribute in attributes -%>
t.column :<%= attribute.name %>, :<%= attribute.type %>
<% end -%>
end
end
def self.down
drop_table :<%= table_name %>
end
end