Sha256: e3155255f0e3ab348875472bd728328d0e9eb07aa42012e74bbe877e86daf723
Contents?: true
Size: 1.06 KB
Versions: 34
Compression:
Stored size: 1.06 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: '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_party_relations, :source_party_id add_index :unidom_party_relations, :target_party_id end end
Version data entries
34 entries across 34 versions & 1 rubygems