Appease the dog overlords
This commit is contained in:
parent
9bcf1a80ad
commit
1ec99dd767
|
@ -8,7 +8,7 @@ class Ajax::InboxController < AjaxController
|
|||
|
||||
question = Question.create!(content: QuestionGenerator.generate,
|
||||
author_is_anonymous: true,
|
||||
author_identifier: 'justask',
|
||||
author_identifier: "justask",
|
||||
user: current_user)
|
||||
|
||||
inbox = Inbox.create!(user: current_user, question_id: question.id, new: true)
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class DropAuthorNameFieldFromQuestions < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
def up
|
||||
execute "update questions set author_identifier = author_name where author_name is not null and author_identifier is null;"
|
||||
remove_column :questions, :author_name
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue