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