Sha256: 6c1bf4574bcee1700d114b6927cb9d45320a13594cfa1deedfc736248ebdcd1c
Contents?: true
Size: 1.3 KB
Versions: 46
Compression:
Stored size: 1.3 KB
Contents
class CreateUnidomStateTransitions < ActiveRecord::Migration def change create_table :unidom_state_transitions, id: :uuid do |t| t.references :transitor_visitor, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :transitor_party, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :subject, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :reason, type: :uuid, null: true t.column :from_state, 'char(1)', null: false, default: 'C' t.column :thru_state, 'char(1)', null: false, default: 'C' t.column :state, 'char(1)', null: false, default: 'C' t.datetime :opened_at, null: false, default: Time.utc(1970) t.datetime :closed_at, null: false, default: Time.utc(3000) t.boolean :defunct, null: false, default: false t.jsonb :notation, null: false, default: {} t.timestamps null: false end add_index :unidom_state_transitions, :transitor_visitor_id add_index :unidom_state_transitions, :transitor_party_id add_index :unidom_state_transitions, :subject_id add_index :unidom_state_transitions, :reason_id end end
Version data entries
46 entries across 46 versions & 1 rubygems