Sha256: e3c29ae20bc7b4e1217e84823677d2090f0ed4d4bc4991c084f641154432a7c3
Contents?: true
Size: 322 Bytes
Versions: 19
Compression:
Stored size: 322 Bytes
Contents
class Create<%= table_name.camelize %> < 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
19 entries across 19 versions & 1 rubygems