Sha256: 9c101b028b05f71720b09919aa9754856beac015dbb34fea3ef3afc8de65fe26
Contents?: true
Size: 847 Bytes
Versions: 15
Compression:
Stored size: 847 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 :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
15 entries across 15 versions & 1 rubygems