Why do I keep getting the error seen below when running rake db:migrate
...
I've followed to the letter https://github.com/plataformatec/devise#getting-started on the devise github readme, created a brand new project, and still get the error.
Created a new rail app: (success)
Added gem 'devise'
to my Gemfile: (success)
Installed the bundle: (success)
Ran the rails generator: (success)
Generated a devise model with the name User: (success)
I referred to the SO question at SQLite3:CantOpenException (uanble to open database file) which lead me to try using rake db:create
which returned db/development.sqlite3 already exists
. fine.
I then ran rake db:migrate
per the getting started..: (fail)
With the error SQLite3::CantOpenException: unable to open database file: CREATE UNIQUE INDEX "index_users_on_email" ON "users" ("email")/cygdrive/c/users/daniel/workspace/ruby/rails/tesT_app/db/migrate/20130606041329_devise_create_users.rb:40:in
change'`
What is happening? I am following this getting started to the letter, and cannot figure this out!
I'd really appreciate it.
edit: Line :40 on ...create_users.rb is
add_index :users, :email, :unique => true
and note that i hadn't touched anything.