Sha256: daf50e2bd7ede6362994af62e269b45c084ad73b2d4bffb4db9832545157038d
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 KB
Contents
class CreateUnidomObsolescences < ActiveRecord::Migration def change create_table :unidom_obsolescences, 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 :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_obsolescences, :obsolescer_visitor_id add_index :unidom_obsolescences, :obsolescer_party_id add_index :unidom_obsolescences, :obsolesced_id add_index :unidom_obsolescences, :reason_id end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-action-0.3 | db/migrate/20000512000000_create_unidom_obsolescences.rb |
unidom-action-0.2 | db/migrate/20000512000000_create_unidom_obsolescences.rb |