Sha256: eaaaad64ec87ab311d6a496cab7801b2b17ccc9bb3ad519fd1a202c488af5423
Contents?: true
Size: 704 Bytes
Versions: 17
Compression:
Stored size: 704 Bytes
Contents
class CreateEcomCoreWorkOrders < ActiveRecord::Migration[6.0] def change create_table :ecom_core_work_orders do |t| t.string :name t.string :reference_number t.references :assigned_to, null: false, index: { name: 'wo_on_at_indx' }, foreign_key: { to_table: :ecom_core_crews } t.references :generated_by, null: false, index: { name: 'wo_on_gb_indx' }, foreign_key: { to_table: :ecom_core_users } t.date :start_date, null: false t.date :end_date, null: false t.string :status, null: false, default: :new t.timestamps end end end
Version data entries
17 entries across 17 versions & 1 rubygems