Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update likes with emoji_type: nil to emoji_type: ThumbsUp #2999

Merged
merged 1 commit into from Jul 10, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,11 @@
class ConvertNilEmojiTypeLikesToThumbsUp < ActiveRecord::Migration[5.2]
def up
Like.where(emoji_type: nil).each do |like|
like.emoji_type = "ThumbsUp"
like.save({})
end
end

def down
end
end
2 changes: 1 addition & 1 deletion db/schema.rb.example
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180618184048) do
ActiveRecord::Schema.define(version: 2018_07_05_203310) do

create_table "answer_selections", force: true do |t|
t.integer "user_id"
Expand Down