Sha256: b70e268090b53e4756b0fc89e1df5c6e50406b42dee688b20766d2f9fef3f4d4

Contents?: true

Size: 451 Bytes

Versions: 2

Compression:

Stored size: 451 Bytes

Contents

class RenameEverything < ActiveRecord::Migration[5.1]
  def change
        rename_table :go_gamification_scorings, :go_gamification_rewards
    rename_column :go_gamification_rewards, :subjectable_id, :rewardable_id
    rename_column :go_gamification_rewards, :subjectable_type, :rewardable_type

    rename_column :go_gamification_tasks, :taskable_id, :rewarding_id
    rename_column :go_gamification_tasks, :taskable_type, :rewarding_type
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
go_gamification-0.0.7 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.6 db/migrate/20171020182027_rename_everything.rb