Sha256: e58a58e9e1437c9b3a02c9444bc8c586bd31b8714936306e9afb96049aadccdc
Contents?: true
Size: 1.23 KB
Versions: 44
Compression:
Stored size: 1.23 KB
Contents
class CreateUnidomObsolescings < ActiveRecord::Migration def change create_table :unidom_obsolescings, id: :uuid do |t| t.references :obsolescer_visitor, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :obsolescer_party, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :obsolesced, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :reason, type: :uuid, null: true t.column :obsolescence_code, 'char(4)', null: false, default: 'OBSL' 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_obsolescings, :obsolescer_visitor_id add_index :unidom_obsolescings, :obsolescer_party_id add_index :unidom_obsolescings, :obsolesced_id add_index :unidom_obsolescings, :reason_id end end
Version data entries
44 entries across 44 versions & 1 rubygems