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.2.5 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.2.4 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.2.3 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.2.2 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.2.1 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.2.0 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.28 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.27 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.26 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.25 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.24 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.23 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.22 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.21 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.20 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.19 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.18 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.17 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.16 db/migrate/20200126082103_create_ecom_core_payments.rb
ecom_core-1.1.15 db/migrate/20200126082103_create_ecom_core_payments.rb