Sha256: 4119a5bf889de0df9788b9c5ec4ae0718bec7e5b80931bbc24d62b81b29f6155

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

class CreateEcomModelCrews < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_model_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_model_crews, :ecom_model_resource_types, column: :crew_type_id
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ecom_model-2.0.4 db/migrate/20191225100054_create_ecom_model_crews.rb
ecom_model-2.0.3 db/migrate/20191225100054_create_ecom_model_crews.rb
ecom_model-2.0.2 db/migrate/20191225100054_create_ecom_model_crews.rb
ecom_model-2.0.1 db/migrate/20191225100054_create_ecom_model_crews.rb
ecom_model-2.0.0 db/migrate/20191225100054_create_ecom_model_crews.rb