このコミットが含まれているのは:
@@ -0,0 +1,17 @@
|
||||
class RequireGekanatorGameUserAndCorrectPost < ActiveRecord::Migration[8.0]
|
||||
def up
|
||||
execute <<~SQL.squish
|
||||
UPDATE gekanator_games
|
||||
SET correct_post_id = guessed_post_id
|
||||
WHERE correct_post_id IS NULL
|
||||
SQL
|
||||
|
||||
change_column_null :gekanator_games, :user_id, false
|
||||
change_column_null :gekanator_games, :correct_post_id, false
|
||||
end
|
||||
|
||||
def down
|
||||
change_column_null :gekanator_games, :correct_post_id, true
|
||||
change_column_null :gekanator_games, :user_id, true
|
||||
end
|
||||
end
|
||||
新しい課題から参照
ユーザをブロックする