Sha256: 9703a9761ca91cb72c81330020641f112a3364761979396edaa27b99f3ef88aa
Contents?: true
Size: 1.97 KB
Versions: 10
Compression:
Stored size: 1.97 KB
Contents
class CreateEcomCoreProjects < ActiveRecord::Migration[6.0] def change create_table :ecom_core_projects do |t| t.string :name, null: false t.string :description t.string :location, null: false t.string :objective t.string :project_scope t.references :employer, null: false, index: { name: 'employer_on_projects_indx' }, foreign_key: { to_table: :ecom_core_stakeholders } t.references :contractor, null: false, index: { name: 'employer_on_contractor_indx' }, foreign_key: { to_table: :ecom_core_stakeholders } t.references :consultant, null: false, index: { name: 'employer_on_consultant_indx' }, foreign_key: { to_table: :ecom_core_stakeholders } t.references :project_manager, null: false, index: { name: 'employer_on_pm_indx' }, foreign_key: { to_table: :ecom_core_stakeholders } t.references :task_template, null: false, index: { name: 'employer_on_tt_indx' }, foreign_key: { to_table: :ecom_core_task_templates } t.string :contract_number, null: false t.date :date_contract_signed, null: false t.date :commencement_date, null: false t.date :completion_date, null: false t.float :contract_amount, null: false t.float :advance_payment, null: false t.float :retention, null: false t.string :remark t.references :currency, null: false, index: { name: 'employer_on_currency_indx' }, foreign_key: { to_table: :ecom_core_currencies } t.references :company, null: false, index: { name: 'project_on_company_indx' }, foreign_key: { to_table: :ecom_core_companies } t.timestamps end end end
Version data entries
10 entries across 10 versions & 1 rubygems