add strip_attributes

converts empty string to nil on the user model
so unique indexes with null: true will not break
This commit is contained in:
jomo
2015-08-26 02:54:51 +02:00
parent 20d31494dc
commit 9edbdb7d55
4 changed files with 6 additions and 2 deletions

View File

@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20150825232749) do
ActiveRecord::Schema.define(version: 20150826002927) do
create_table "blogposts", force: true do |t|
t.string "title"