##// END OF EJS Templates
r18547@gaspard (orig r1811): jplang | 2008-09-13 17:33:46 +0200...
r18547@gaspard (orig r1811): jplang | 2008-09-13 17:33:46 +0200 Mailer compatibility with Rails 2.1.1. git-svn-id: http://redmine.rubyforge.org/svn/branches/nbc@1841 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r1785:f7acdd1afde3
r1839:bd3777694a9a
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