Sha256: a1b0d214549a5d02c7a53e2bd2f9b46fccc73902b71fdb703d01a270af521ad8

Contents?: true

Size: 406 Bytes

Versions: 1

Compression:

Stored size: 406 Bytes

Contents

class CreateVimoEntities < ActiveRecord::Migration[5.0]
  def change
    create_table :vimo_entities do |t|
      t.string :name
      t.string :system_name
      t.references :owner, polymorphic: true, index: true
      t.string :expand_model

      t.timestamps
    end

    add_index :vimo_entities, [:owner_id, :owner_type, :system_name],
      unique: true, name: :entity_unique_system_name
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vimo-0.1.3 db/migrate/20180208181633_create_vimo_entities.rb