Sha256: 8e1f9b31b773cc4f3af08efb0451c2d29084434cfbf09b226c495941832a089b
Contents?: true
Size: 1.41 KB
Versions: 4
Compression:
Stored size: 1.41 KB
Contents
class CreatePerfectMoneyMerchantAccountsAndAccountUnitsAndPayments < ActiveRecord::Migration def up create_table :perfect_money_merchant_accounts do |t| t.string :login t.string :password t.string :secret_key end create_table :perfect_money_merchant_account_units do |t| t.integer :account_id t.string :currency t.string :code_number t.float :balance end create_table :perfect_money_merchant_payments do |t| t.string :payment_batch_num t.string :payment_id t.string :payment_amount t.string :payer_account t.string :payee_account t.timestamps end add_index :perfect_money_merchant_payments, :payment_batch_num, :unique => true, name: :pmmp_pbn_unq add_index :perfect_money_merchant_accounts, :login, :unique => true, name: :pmma_l_unq add_index :perfect_money_merchant_accounts, :secret_key, :unique => true, name: :pmma_sk_unq add_index :perfect_money_merchant_account_units, :code_number, :unique => true, name: :pmmam_cn_unq end def down drop_table :perfect_money_merchant_accounts drop_table :perfect_money_merchant_account_units drop_table :perfect_money_merchant_payments remove_index :perfect_money_merchant_payments, name: :pmmp_pbn_unq remove_index :perfect_money_merchant_accounts, name: :pmma_l_unq remove_index :perfect_money_merchant_accounts, name: :pmma_sk_unq remove_index :perfect_money_merchant_account_units, name: :pmmam_cn_unq end end
Version data entries
4 entries across 4 versions & 1 rubygems