Sha256: ed80813520c8b293776d078adf810484e69922b64ed4565b028047cd4e1dec77
Contents?: true
Size: 1.18 KB
Versions: 1
Compression:
Stored size: 1.18 KB
Contents
class CreateUnidomCollaboratings < ActiveRecord::Migration def change create_table :unidom_collaboratings, id: :uuid do |t| t.references :collaboration, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :collaborator, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.column :role_code, 'char(4)', null: false, default: 'ZZZZ' t.string :name, null: false, default: '', limit: 200 t.integer :priority, null: false, default: 0 t.integer :grade, null: false, default: 0 t.text :description t.text :instruction 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_collaboratings, :collaboration_id add_index :unidom_collaboratings, :collaborator_id end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unidom-party-2.0 | db/migrate/20010111000000_create_unidom_collaboratings.rb |