Sha256: fa99195749b41cf5ab68dfc8909ac7abb9f9145cf0f92e5509db43ea04a2c9a9
Contents?: true
Size: 644 Bytes
Versions: 16
Compression:
Stored size: 644 Bytes
Contents
class CreateEcomCoreLookaheadPlans < ActiveRecord::Migration[6.0] def change create_table :ecom_core_lookahead_plans do |t| t.string :name, null: false t.date :start_date, null: false t.date :end_date, null: false t.string :status, null: false, default: :new t.integer :revision_number, default: 0 t.integer :lead_time, default: 336 # default lead time 2 weeks( 336 hours ) t.references :prepared_by, null: false, index: { name: 'lprt_on_pb_indx' }, foreign_key: { to_table: :ecom_core_users } t.timestamps end end end
Version data entries
16 entries across 16 versions & 1 rubygems