fix sql uniqueness not working

turns out :unique is actually not an option, see
http://apidock.com/rails/v4.2.1/ActiveRecord/ConnectionAdapters/TableDefinition/column

weird enough this never caused trouble
This commit is contained in:
jomo
2015-08-26 01:39:07 +02:00
parent 3c0173f7c4
commit 20d31494dc
5 changed files with 37 additions and 12 deletions
+2 -2
View File
@@ -32,9 +32,9 @@ deleted_user = User.create!(
deleted_user.update_attribute(:ign, "Steve")
User.create!(
uuid: "9ff3d74f716940a3aa6f262ab632d2",
uuid: "ae795aa86327408e92ab25c8a59f3ba1",
ign: "jomo",
email: "theredstonesheep@gmail.com",
email: "jomo@example.com",
password: "123456789", # high seructity!
password_confirmation: "123456789",
role: Role.get(:superadmin)