Sha256: 0617a444a4c1acb7360585890c55334b6c29f54aebd0d731275b5e4220b96c69
Contents?: true
Size: 882 Bytes
Versions: 20
Compression:
Stored size: 882 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 t.date :employment_date t.boolean :sub_contracted, null: false, default: false t.string :photo t.string :guarantor_name, null: false t.string :guarantor_phone, null: false 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
20 entries across 20 versions & 1 rubygems