Sha256: 22411b449472ba4111c9b69340f6281acfa089c4d9c599b8a430d5f59d7c7c55

Contents?: true

Size: 689 Bytes

Versions: 8

Compression:

Stored size: 689 Bytes

Contents

class CreateEcomCoreCrewContracts < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_crew_contracts do |t|
      t.string :contract_no, null: false, unique: true
      t.date :from, null: false
      t.date :to, null: false
      t.string :place_of_work, null: false
      t.integer :probation_period, null: false
      t.string :contract_type, null: false
      t.boolean :contract_signed, null: false, default: false
      t.date :date_contract_signed
      t.references :crew,
                   null: false,
                   index: { name: 'cc_on_crew_indx' },
                   foreign_key: { to_table: :ecom_core_crews }

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecom_core-1.2.34 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.33 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.32 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.31 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.30 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.29 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.28 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb
ecom_core-1.2.27 db/migrate/20200901085227_create_ecom_core_crew_contracts.rb