Sha256: 3f48c88f4ab3732dd1fd9629218ad9dc997fc52e316ca41b11980c0961367f3a

Contents?: true

Size: 339 Bytes

Versions: 29

Compression:

Stored size: 339 Bytes

Contents

class RenameJoinTables < ActiveRecord::Migration[4.2]
  def up
    rename_table :hosts_salt_modules, :host_salt_modules
    rename_table :hostgroups_salt_modules, :hostgroup_salt_modules
  end

  def down
    rename_table :host_salt_modules, :hosts_salt_modules
    rename_table :hostgroup_salt_modules, :hostgroups_salt_modules
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
foreman_salt-17.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-17.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-16.0.3 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-16.0.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-16.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-16.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.2.3 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.2.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.2.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.2.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.1.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-15.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-14.1.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-14.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.2.4 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.2.3 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.2.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.2.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.2.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-13.1.0 db/migrate/20150509094409_rename_join_tables.rb