Sha256: 62b2a05186707ab14367403f72f2efc20746144cdb4455caf8c446afdd7f4aef

Contents?: true

Size: 774 Bytes

Versions: 2

Compression:

Stored size: 774 Bytes

Contents

class CreateMaestranoConnectorRailsIdMaps < ActiveRecord::Migration
  def change
    create_table :maestrano_connector_rails_id_maps do |t|
      t.string :connec_id
      t.string :connec_entity
      t.string :external_id
      t.string :external_entity
      t.integer :organization_id
      t.datetime :last_push_to_connec
      t.datetime :last_push_to_external

      t.timestamps null: false
    end
    add_index :maestrano_connector_rails_id_maps, [:connec_id, :connec_entity, :organization_id], name: 'idmap_connec_index'
    add_index :maestrano_connector_rails_id_maps, [:external_id, :external_entity, :organization_id], name: 'idmap_external_index'
    add_index :maestrano_connector_rails_id_maps, :organization_id, name: 'idmap_organization_index'
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maestrano-connector-rails-0.2.0 db/migrate/20151122163449_create_maestrano_connector_rails_id_maps.rb
maestrano-connector-rails-0.0.1 db/migrate/20151122163449_create_maestrano_connector_rails_id_maps.rb