Sha256: e5043a9a950be93c5cebe7f54ea349d2af0816a683179ffaf4106e3ff4408972
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 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: Unidom::Common::STATE t.datetime :opened_at, null: false, default: Unidom::Common::OPENED_AT t.datetime :closed_at, null: false, default: Unidom::Common::CLOSED_AT 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-standard-2.0 | db/migrate/20000602000000_create_unidom_standard_associatings.rb |