Sha256: e1c82b6310f8a8fd81a9a8b96c562bef90df380e69461634d4caa8a321c5f741
Contents?: true
Size: 316 Bytes
Versions: 1
Compression:
Stored size: 316 Bytes
Contents
class Create<%= class_name.pluralize %> < ActiveRecord::Migration def self.up create_table :<%= table_name %> do |t| <% attributes.each do |attribute| %>t.<%= attribute.type %> :<%= attribute.name %> <% end %> t.timestamps end end def self.down drop_table :<%= table_name %> end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
casein-5.2.0.0 | lib/generators/casein/scaffold/templates/migration.rb |