Sha256: 7177014b5004ba3333b08a44ec8147ce4d08392d03c60fcb7a2d580579bda570

Contents?: true

Size: 282 Bytes

Versions: 28

Compression:

Stored size: 282 Bytes

Contents

class AddIndexToJoinTables < ActiveRecord::Migration[4.2]
  def change
    add_index :host_salt_modules, :host_id
    add_index :host_salt_modules, :salt_module_id
    add_index :hostgroup_salt_modules, :hostgroup_id
    add_index :hostgroup_salt_modules, :salt_module_id
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
foreman_salt-12.0.0 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-11.0.1 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-11.0.0 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-10.3.1 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-10.3.0 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-10.2.0 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-10.1.0 db/migrate/20161103104146_add_index_to_join_tables.rb
foreman_salt-10.0.0 db/migrate/20161103104146_add_index_to_join_tables.rb