Sha256: d1ee00aaacc2174c6dd79600f208c46e5ac61a5bd15072c6f5cf9cf43a28b9c2
Contents?: true
Size: 375 Bytes
Versions: 1
Compression:
Stored size: 375 Bytes
Contents
class BentoCreateAccounts < ActiveRecord::Migration def self.up create_table :accounts do |t| t.string :name t.string :plan <% for attribute in attributes -%> t.<%= attribute.type %> :<%= attribute.name %> <% end -%> t.timestamps end add_index :accounts, :name, :unique => true end def self.down drop_table :accounts end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bento-0.0.1 | lib/generators/active_record/templates/create_migration.rb |