ruby on rails - db:create misreports database existence -
after creating new site commands
rails new board --skip-bundle ... rake db:create i have message "xxxxx exists" not consistent , indicates goes wrong.
reproducing:
rails new board --skip-bundle ... $ rake db:migrate rake aborted! fatal: database "boardio" not exist tasks: top => db:migrate (see full trace running task --trace) if try create db then:
$ rake db:create boardio exists it says here "exists". said "does not exist": why rake gives wrong message? going wrong? after migration seems runs ok:
$ rake db:migrate == createmytables: migrating ================================================= -- create_table("users") notice: create table create ........column "users.id" ............. details versions:
$ ruby --version ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux] $ rails --version rails 3.1.3 thank you.
without knowing more, i'm not sure what's causing odd behavior. recommend dropping , creating databases if happens again:
rake db:drop:all && rake db:create:all
Comments
Post a Comment