Browse Source

Fix spoiler_text not having "not null" constraint

closed-social-v3
Eugen Rochko 7 years ago
parent
commit
0430f7c0fa
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      db/migrate/20170125145934_add_spoiler_text_to_statuses.rb
  2. +1
    -1
      db/schema.rb

+ 1
- 1
db/migrate/20170125145934_add_spoiler_text_to_statuses.rb View File

@ -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

+ 1
- 1
db/schema.rb View File

@ -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

Loading…
Cancel
Save