SQLite3::BusyException: database is locked: CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")
I get the above error when I try to migrate a migration (written below)
class AddIndexEmailUniquenessToUsers < ActiveRecord::Migration
def self.up
add_index :users,:email,:unique => true
end
def self.down
remove_index :users,:email
end
end
what went wrong. I didnt do any lock kind of thing in previous transactions.