Sha256: 7a82f19449fa4a0fe677d57027fbe2c52bc36be9877c5d696bc5d9b769e9915b
Contents?: true
Size: 861 Bytes
Versions: 22
Compression:
Stored size: 861 Bytes
Contents
class CreateUnidomStandardAssociatings < ActiveRecord::Migration def change create_table :unidom_standard_associatings, id: :uuid do |t| t.references :source, type: :uuid, null: false t.references :target, type: :uuid, null: false t.column :association_code, 'char(4)', null: false, default: 'REVS' 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_standard_associatings, [ :source_id, :target_id ], unique: true add_index :unidom_standard_associatings, :target_id end end
Version data entries
22 entries across 22 versions & 1 rubygems