##// END OF EJS Templates
r18550@gaspard (orig r1814): jplang | 2008-09-13 18:31:11 +0200...
r18550@gaspard (orig r1814): jplang | 2008-09-13 18:31:11 +0200 Merged nbc branch @ r1812 (commit access permission and reposman improvements). git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1843 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1785:f7acdd1afde3
r1841:b6e15f96e435
Show More
migration.rb
13 lines | 294 B | text/x-ruby | RubyLexer
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