Sha256: 1066e2256f021cc65d9a77450cddb0eb7a4cd32fba7067c7bb339ae2ee72f4e2

Contents?: true

Size: 562 Bytes

Versions: 4

Compression:

Stored size: 562 Bytes

Contents

require 'skr/db/migration_helpers'

class CreateBankAccounts < ActiveRecord::Migration
    def change

        create_skr_table :bank_accounts do |t|
            t.text :code,           null: false
            t.text :name,           null: false
            t.text :description
            t.text :routing_number
            t.text :account_number
            t.skr_reference :address,    null: false, to_table: :addresses
            t.skr_reference :gl_account, null: false, to_table: :gl_accounts
            t.timestamps null: false
        end

    end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
stockor-0.5.0 db/migrate/20160229002044_create_bank_accounts.rb
stockor-0.4.0 db/migrate/20160229002044_create_bank_accounts.rb
stockor-0.3.0 db/migrate/20160229002044_create_bank_accounts.rb
stockor-0.2 db/migrate/20160229002044_create_bank_accounts.rb