Sha256: 1b2006788c7ac87e39e11acfb4b07ffa7dbc9e3b2b0027794504c0ff1ba87701

Contents?: true

Size: 462 Bytes

Versions: 17

Compression:

Stored size: 462 Bytes

Contents

class CreateEcomCorePayrolls < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_payrolls do |t|
      t.integer :month, null: false
      t.integer :year, null: false
      t.boolean :approved, null: false, default: false
      t.references :site,
                   null: false,
                   index: { name: 'payroll_on_site_indx' },
                   foreign_key: { to_table: :ecom_core_sites }

      t.timestamps
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
ecom_core-1.3.14 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.13 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.12 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.11 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.10 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.9 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.8 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.7 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.6 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.5 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.4 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.3 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.2 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.1 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.3.0 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.2.36 db/migrate/20200126081005_create_ecom_core_payrolls.rb
ecom_core-1.2.35 db/migrate/20200126081005_create_ecom_core_payrolls.rb