Sha256: 0284d85448291fc9552b91c0e53114c209f60ea6e2a621d78f53b9516924e413

Contents?: true

Size: 484 Bytes

Versions: 7

Compression:

Stored size: 484 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.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

7 entries across 7 versions & 1 rubygems

Version Path
ecom_core-1.0.6 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.5 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.4 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.3 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.2 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.1 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.0.0 db/migrate/20191225100054_create_ecom_core_crews.rb