Sha256: eca09adec8ba063b34a605a1263b394005be2710b79708ef6a9a402f26a14a34
Contents?: true
Size: 1006 Bytes
Versions: 17
Compression:
Stored size: 1006 Bytes
Contents
class CreateEcomCoreWorkPackages < ActiveRecord::Migration[6.0] def change create_table :ecom_core_work_packages do |t| t.string :code, null: false, unique: true t.string :name, null: false t.string :description t.date :start_date t.date :end_date t.string :location t.decimal :budget, precision: 10, scale: 2 t.string :resource_required t.string :concerns t.references :site_engineer, null: true, index: { name: 'wp_on_si_indx' }, foreign_key: { to_table: :ecom_core_users } t.references :project_manager, null: true, index: { name: 'wp_on_pm_indx' }, foreign_key: { to_table: :ecom_core_users } t.references :project, null: false, index: { name: 'wp_on_project_indx' }, foreign_key: { to_table: :ecom_core_projects } t.timestamps end end end
Version data entries
17 entries across 17 versions & 1 rubygems