Sha256: 50fe2644f5a06cc2640c4acd7b94b53dc815c697934c28d574e27fe11b32e165

Contents?: true

Size: 479 Bytes

Versions: 8

Compression:

Stored size: 479 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: 'Active'

      t.timestamps
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ecom_core-1.3.5 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.4 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.3 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.2 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.1 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.3.0 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.2.36 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb
ecom_core-1.2.35 db/migrate/20201013094100_create_ecom_core_crew_id_cards.rb