Sha256: 6b073b11f4fb1e1fad5ef11b055a4c399f9e382c6db3eb404e63fa7917f03425

Contents?: true

Size: 425 Bytes

Versions: 9

Compression:

Stored size: 425 Bytes

Contents

class CreateLogisticsCoreContracts < ActiveRecord::Migration[5.0]
  def change
    create_table :logistics_core_contracts do |t|
      t.string :contract_number
      t.string :title
      t.date :start_date
      t.date :end_date
      t.date :contract_signed_date
      t.integer :client_id

      t.timestamps
    end
    add_foreign_key :logistics_core_contracts, :logistics_core_clients, :column => :client_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
logistics_core-21.11.2 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-21.11.1 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-21.08.1 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-21.03.1 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-20.10.3 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-20.10.2 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-20.10.1 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-20.9.1 db/migrate/20170308115210_create_logistics_core_contracts.rb
logistics_core-20.8.1 db/migrate/20170308115210_create_logistics_core_contracts.rb