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.1.14 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.13 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.12 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.11 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.10 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.9 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.8 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.7 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.6 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.5 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.4 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.3 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.2 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.1 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.0 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.25 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.24 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.23 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.22 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.0.21 db/migrate/20200126082103_create_ecom_core_payments.rb