Sha256: 8c0962ed63a5b805b71e7d70eabac5abc70a3d7d4865d2da9d7fb83957ab35f9

Contents?: true

Size: 429 Bytes

Versions: 8

Compression:

Stored size: 429 Bytes

Contents

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

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

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
go_gamification-0.0.20 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.19 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.18 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.17 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.16 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.15 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.14 db/migrate/20171020182027_rename_everything.rb
go_gamification-0.0.13 db/migrate/20171020182027_rename_everything.rb