diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-25 15:24:19 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2017-01-25 15:24:19 +0100 |
commit | 0430f7c0fa73e03fad83af123b22f56cfe60c7fb (patch) | |
tree | 055e451910843e23ae3ad708255a8422a9186da3 /db/migrate | |
parent | 51a7047367960af1d710383266a09608170eb56c (diff) |
Fix spoiler_text not having "not null" constraint
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20170125145934_add_spoiler_text_to_statuses.rb | 2 |
1 files changed, 1 insertions, 1 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 |