Make `question_id` on anonymous blocks nullable

This commit is contained in:
Andreas Nedbal 2022-12-27 08:03:21 +01:00 committed by Andreas Nedbal
parent 099665022f
commit d51ef91775
2 changed files with 8 additions and 1 deletions

View File

@ -0,0 +1,7 @@
# frozen_string_literal: true
class MakeQuestionIdOnAnonymousBlocksNullable < ActiveRecord::Migration[6.1]
def change
change_column_null :anonymous_blocks, :question_id, true
end
end

View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2022_12_27_002012) do
ActiveRecord::Schema.define(version: 2022_12_27_065923) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"