Sha256: e1cd3f63d97d765e56e3c3922cb32d90a355f78fb13dcd31af882fe425f297c1
Contents?: true
Size: 408 Bytes
Versions: 2
Compression:
Stored size: 408 Bytes
Contents
class CreatePaymentMethods < ActiveRecord::Migration def self.up create_table :payment_methods do |t| t.string :name t.timestamps end PaymentMethod.create! :name => 'Cash' PaymentMethod.create! :name => 'Check' PaymentMethod.create! :name => 'Credit' PaymentMethod.create! :name => 'Debit' end def self.down drop_table :payment_methods end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
brisk-bills-0.8.2 | db/migrate/016_create_payment_methods.rb |
brisk-bills-0.8.1 | db/migrate/016_create_payment_methods.rb |