Sha256: d4da851229ffb132e79bcac8fe6d7efb8bb3644085ec4a1338d7933ca09bc9d9
Contents?: true
Size: 304 Bytes
Versions: 8
Compression:
Stored size: 304 Bytes
Contents
class <%= migration_name %> < ActiveRecord::Migration def self.up create_table :<%= table_name %> do |t| <% for attribute in attributes -%> t.<%= attribute.type %> :<%= attribute.name %> <% end %> t.timestamps end end def self.down drop_table :<%= table_name %> end end
Version data entries
8 entries across 8 versions & 1 rubygems