Sha256: 7a0a39064ed39837a1d4e0c30aa092a4ab7c1571857d4f85a7e95e614db20a2e

Contents?: true

Size: 536 Bytes

Versions: 5

Compression:

Stored size: 536 Bytes

Contents

class CreateEcomCoreCrews < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_crews do |t|
      t.string :name, null: false
      t.string :phone
      t.string :email
      t.string :qualification, null: false
      t.string :employment, null: false
      t.float :wage
      t.boolean :active, null: false, default: true
      t.references :crew_type, index: { name: 'crew_on_ct_indx' }

      t.timestamps
    end

    add_foreign_key :ecom_core_crews, :ecom_core_resource_types, column: :crew_type_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_core-1.0.11 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.10 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.9 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.8 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.7 db/migrate/20191225100054_create_ecom_core_crews.rb