Sha256: 3cf8e22c6e069bb123cd55560e3d3faa738facdf60339282132c24e7b94b7081

Contents?: true

Size: 478 Bytes

Versions: 9

Compression:

Stored size: 478 Bytes

Contents

class CreateEcomCoreCrewIdCards < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_crew_id_cards do |t|
      t.references :crew,
                   null: false,
                   index: { name: 'ci_on_crew_indx' },
                   foreign_key: { to_table: :ecom_core_crews }

      t.datetime :issued_on, null: false
      t.datetime :valid_until, null: false
      t.string :status, null: false, default: 'Valid'

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ecom_core-1.3.14 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.13 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.12 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.11 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.10 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.9 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.8 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.7 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.6 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb