Sha256: facdabb19d2199c9d78ea0873626fd0c0d0d521a4a7c92640ea8c777039f9353

Contents?: true

Size: 386 Bytes

Versions: 48

Compression:

Stored size: 386 Bytes

Contents

class CreateEcomCorePayments < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_payments do |t|
      t.date :from, null: false
      t.date :to, null: false
      t.references :payroll, null: false, index: { name: 'payments_on_payroll_indx' }

      t.timestamps
    end

    add_foreign_key :ecom_core_payments, :ecom_core_payrolls, column: :payroll_id
  end
end

Version data entries

48 entries across 48 versions & 1 rubygems

Version Path
ecom_core-1.0.20 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.19 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.18 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.17 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.16 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.15 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.14 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.13 db/migrate/20200126082103_create_ecom_core_payments.rb