Sha256: 31b5ce4d2cb0dabf9006b46f438e220a4bc7dc3d8cb29ab907d19aa45d5cf1ce

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

class CreateHatchyBankAccounts < ActiveRecord::Migration
  def change
    create_table :hatchy_bank_accounts do |t|
      t.belongs_to  :user
      t.belongs_to  :bank
      t.string      :account,       null: false
      t.string      :account_digit, null: false
      t.timestamps
    end
    add_index :hatchy_bank_accounts, [:user_id, :bank_id]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/migrate/20160111175001_create_hatchy_bank_accounts.rb
hatchy-0.0.7.pre db/migrate/20160111175001_create_hatchy_bank_accounts.rb
hatchy-0.0.6.pre db/migrate/20160111175001_create_hatchy_bank_accounts.rb
hatchy-0.0.5.pre db/migrate/20160111175001_create_hatchy_bank_accounts.rb