Indexing email causes errors with blank fields
This commit is contained in:
parent
5d7259b49d
commit
dcba14c9ce
2 changed files with 6 additions and 2 deletions
|
@ -0,0 +1,5 @@
|
||||||
|
class RemoveIndexEmailFromUsers < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
remove_index "users", :name => 'index_users_on_email'
|
||||||
|
end
|
||||||
|
end
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended to check this file into your version control system.
|
# It's strongly recommended to check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(:version => 20130424230817) do
|
ActiveRecord::Schema.define(:version => 20130425230007) do
|
||||||
|
|
||||||
# Could not dump table "alerts" because of following StandardError
|
# Could not dump table "alerts" because of following StandardError
|
||||||
# Unknown type 'enum' for column 'semester'
|
# Unknown type 'enum' for column 'semester'
|
||||||
|
@ -50,7 +50,6 @@ ActiveRecord::Schema.define(:version => 20130424230817) do
|
||||||
t.string "username"
|
t.string "username"
|
||||||
end
|
end
|
||||||
|
|
||||||
add_index "users", ["email"], :name => "index_users_on_email", :unique => true
|
|
||||||
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
add_index "users", ["reset_password_token"], :name => "index_users_on_reset_password_token", :unique => true
|
||||||
|
|
||||||
create_table "users_roles", :id => false, :force => true do |t|
|
create_table "users_roles", :id => false, :force => true do |t|
|
||||||
|
|
Loading…
Reference in a new issue