Sha256: c5183de0ac41dd7b51932818495438891d2bccdafcf07fe5be64cee024658206

Contents?: true

Size: 334 Bytes

Versions: 21

Compression:

Stored size: 334 Bytes

Contents

class RenameJoinTables < ActiveRecord::Migration
  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

21 entries across 21 versions & 1 rubygems

Version Path
foreman_salt-8.0.4 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-9.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-9.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-8.0.3 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-8.0.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-8.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-7.0.3 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-8.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-7.0.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-6.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-7.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-7.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-6.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-5.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-5.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-4.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-4.0.0 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-3.0.2 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-3.0.1 db/migrate/20150509094409_rename_join_tables.rb
foreman_salt-3.0.0 db/migrate/20150509094409_rename_join_tables.rb