Fix spoiler_text not having "not null" constraint
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user