Sha256: a8895cb8513776c78d225835a502fbe0205f7a6d3b1c3550d0984ceff6832f96
Contents?: true
Size: 310 Bytes
Versions: 114
Compression:
Stored size: 310 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= table_name %>, :force => true do |t| <% for attribute in attributes -%> t.column :<%= attribute.name %>, :<%= attribute.type %> <% end -%> end end def self.down drop_table :<%= table_name %> end end
Version data entries
114 entries across 114 versions & 28 rubygems