diff --git a/db/migrate/20221227065923_make_question_id_on_anonymous_blocks_nullable.rb b/db/migrate/20221227065923_make_question_id_on_anonymous_blocks_nullable.rb new file mode 100644 index 00000000..e7ca801d --- /dev/null +++ b/db/migrate/20221227065923_make_question_id_on_anonymous_blocks_nullable.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index ce67fb51..094c992c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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"