Sha256: 0b0cee23b068329a73546a76671d9b258a24478aca6f1b16c3c8349639902dd8
Contents?: true
Size: 941 Bytes
Versions: 23
Compression:
Stored size: 941 Bytes
Contents
class CreateUnidomLocatings < ActiveRecord::Migration def change create_table :unidom_locatings, id: :uuid do |t| t.references :location, type: :uuid, null: false t.references :located, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } t.references :locator, type: :uuid, null: false, polymorphic: { null: false, default: '', limit: 200 } 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_locatings, :location_id add_index :unidom_locatings, :located_id add_index :unidom_locatings, :locator_id end end
Version data entries
23 entries across 23 versions & 1 rubygems