Sha256: ee085ca488c42b1f6de342effd954b7af0c3890a6c87af158f3e61fa4c066be2
Contents?: true
Size: 907 Bytes
Versions: 22
Compression:
Stored size: 907 Bytes
Contents
class CreateUnidomPositions < ActiveRecord::Migration def change create_table :unidom_positions, id: :uuid do |t| t.references :organization, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :occupation, type: :uuid, null: false t.string :name, null: false, default: '', limit: 200 t.text :description t.text :instruction 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_positions, :organization_id add_index :unidom_positions, :occupation_id end end
Version data entries
22 entries across 22 versions & 1 rubygems