Sha256: 5b56a7bf1fb60790ef34852fef6556deb8adaf09933cfbf589ea8a115934ae5d

Contents?: true

Size: 869 Bytes

Versions: 9

Compression:

Stored size: 869 Bytes

Contents

class CreateEcomCoreCrews < ActiveRecord::Migration[6.0]
  def change
    create_table :ecom_core_crews do |t|
      t.string :employee_id
      t.string :name, null: false
      t.string :address, null: false
      t.string :phone
      t.string :email
      t.string :qualification, null: false
      t.string :employment, null: false
      t.float :wage, null: false
      t.string :wage_in_words, null: false
      t.date :employment_date
      t.boolean :sub_contracted, null: false, default: false
      t.string :photo
      t.string :guarantor_name
      t.string :guarantor_phone
      t.boolean :active, null: false, default: true
      t.references :crew_type,
                   null: false,
                   index: { name: 'crew_on_ct_indx' },
                   foreign_key: { to_table: :ecom_core_resource_types }

      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ecom_core-1.2.31 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.30 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.29 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.28 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.27 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.26 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.25 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.24 db/migrate/20191225100054_create_ecom_core_crews.rb
ecom_core-1.2.23 db/migrate/20191225100054_create_ecom_core_crews.rb