Sha256: 8bc3acc79ffea36bfbb584d7d598a2c6459604fa19bd21894a67e77a6534c239
Contents?: true
Size: 397 Bytes
Versions: 4
Compression:
Stored size: 397 Bytes
Contents
class <%= class_name.snake_case.camel_case %> < ActiveRecord::Migration def self.up <%= "create_table :#{table_name} do |t|" if table_name %> <% for attribute in table_attributes -%> t.column :<%= attribute.name %>, :<%= attribute.type %> <% end -%> <%= "end" if table_name %> end def self.down <% if table_name -%> drop_table :<%= table_name %> <% end -%> end end
Version data entries
4 entries across 4 versions & 2 rubygems