Sha256: 3f0330c20658ac5f54a6e97f7f8e879fa04408140bfae4101808b40accc90c23
Contents?: true
Size: 1.09 KB
Versions: 1
Compression:
Stored size: 1.09 KB
Contents
class CreateUnidomPartyRelations < ActiveRecord::Migration def change create_table :unidom_party_relations, id: :uuid do |t| t.references :source_party, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :target_party, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.column :linkage_code, 'char(4)', null: false, default: 'FRND' t.integer :priority, null: false, default: 0 t.integer :grade, null: false, default: 0 t.text :description 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_party_relations, :source_party_id add_index :unidom_party_relations, :target_party_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-2.0 | db/migrate/20010101000000_create_unidom_party_relations.rb |