Sha256: 2b72bafb0879f92c728f3e15095fd2df64489afc7f34df773341ed668b3e0777
Contents?: true
Size: 339 Bytes
Versions: 6
Compression:
Stored size: 339 Bytes
Contents
class RoomerCreate<%= 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
6 entries across 6 versions & 1 rubygems