Sha256: 08449196298b6cf34ae448d8f02645897a6c4cb083e324d8a3d15021ffa71279

Contents?: true

Size: 643 Bytes

Versions: 28

Compression:

Stored size: 643 Bytes

Contents

class CreateEcomCoreProjectCrews < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_project_crews do |t|
      t.references :project,
                   null: false,
                   index: { name: 'pc_on_project_indx' },
                   foreign_key: { to_table: :ecom_core_projects }
      t.references :crew,
                   null: false,
                   index: { name: 'pc_on_crew_indx' },
                   foreign_key: { to_table: :ecom_core_crews }
      t.date :start_date, null: false
      t.date :end_date
      t.string :status, null: false, default: 'Inactive'

      t.timestamps
    end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ecom_core-1.2.14 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.13 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.12 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.11 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.10 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.9 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.7 db/migrate/20191225121850_create_ecom_core_project_crews.rb
ecom_core-1.2.6 db/migrate/20191225121850_create_ecom_core_project_crews.rb