From 0430f7c0fa73e03fad83af123b22f56cfe60c7fb Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Wed, 25 Jan 2017 15:24:19 +0100 Subject: Fix spoiler_text not having "not null" constraint --- db/migrate/20170125145934_add_spoiler_text_to_statuses.rb | 2 +- db/schema.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/db/migrate/20170125145934_add_spoiler_text_to_statuses.rb b/db/migrate/20170125145934_add_spoiler_text_to_statuses.rb index e4065d7db..2c43210ba 100644 --- a/db/migrate/20170125145934_add_spoiler_text_to_statuses.rb +++ b/db/migrate/20170125145934_add_spoiler_text_to_statuses.rb @@ -1,5 +1,5 @@ class AddSpoilerTextToStatuses < ActiveRecord::Migration[5.0] def change - add_column :statuses, :spoiler_text, :text, default: "" + add_column :statuses, :spoiler_text, :text, default: "", null: false end end diff --git a/db/schema.rb b/db/schema.rb index ee4dd4316..72ce63133 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -196,7 +196,7 @@ ActiveRecord::Schema.define(version: 20170125145934) do t.integer "visibility", default: 0, null: false t.integer "in_reply_to_account_id" t.integer "application_id" - t.text "spoiler_text", default: "" + t.text "spoiler_text", default: "", null: false t.index ["account_id"], name: "index_statuses_on_account_id", using: :btree t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id", using: :btree t.index ["reblog_of_id"], name: "index_statuses_on_reblog_of_id", using: :btree -- cgit