Sha256: 833e80dc2184ce343b7006219480b50ead82eadd35718ebd0d60f5da8997c6df
Contents?: true
Size: 923 Bytes
Versions: 12
Compression:
Stored size: 923 Bytes
Contents
class CreateUnidomOccupations < ActiveRecord::Migration def change create_table :unidom_occupations, id: :uuid do |t| t.references :scheme, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.string :code, null: true, default: nil, limit: 64 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_occupations, :scheme_id add_index :unidom_occupations, [ :code, :scheme_id ], unique: true end end
Version data entries
12 entries across 12 versions & 1 rubygems