Sha256: ef9d68c38a00f676f05b2f627bf2c957679bf2ecd238d1ce0fbf056f8952f96d

Contents?: true

Size: 276 Bytes

Versions: 7

Compression:

Stored size: 276 Bytes

Contents

class RenamePlan < ActiveRecord::Migration[6.0]
  def change
    rename_column :foreman_patch_cycles, :cycle_plan_id, :plan_id
    rename_column :foreman_patch_window_plans, :cycle_plan_id, :plan_id

    rename_table :foreman_patch_cycle_plans, :foreman_patch_plans
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_patch-1.2.0.alpha1 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.6.alpha5 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.6.alpha4 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.5 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.4 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.3 db/migrate/20210910163542_rename_plan.rb
foreman_patch-1.1.1 db/migrate/20210910163542_rename_plan.rb