Sha256: 079389e8354880816356b132db24faf08c16d7e8be4ebc59496966abea11d852
Contents?: true
Size: 690 Bytes
Versions: 49
Compression:
Stored size: 690 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.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, 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
49 entries across 49 versions & 1 rubygems