Sha256: b71f4b0752ea3469752bdcb35b6afa3eada156de6616b3af2ac793cc081b2f0a

Contents?: true

Size: 448 Bytes

Versions: 1

Compression:

Stored size: 448 Bytes

Contents

class RenameEverything < ActiveRecord::Migration[5.1]
  def change
        rename_table :go_gamification_scorings, :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

1 entries across 1 versions & 1 rubygems

Version Path
go_gamification-0.0.4 db/migrate/20171020182027_rename_everything.rb