Bitlab
asked on
db:create misreports database existence
Hello Experts.
After creating a new site with commands
rails new board --skip-bundle
...
rake db:create
I have message like "XXXXX already exists" which is not consistent and indicates that something goes wrong.
Reproducing:
rails new board --skip-bundle
...
$ rake db:migrate
rake aborted!
FATAL: database "boardio" does not exist
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
If to try to create db then:
$ rake db:create
boardio already exists
It says here "exists". It just said "does not exist": Why rake gives a wrong message? What is going wrong? After this migration seems runs OK:
$ rake db:migrate
== CreateMyTables: migrating ========================== ========== ========== ===
-- create_table("users")
NOTICE: CREATE TABLE will create ........column "users.id"
.............
Details about versions:
$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
$ rails --version
Rails 3.1.3
Thank you.
After creating a new site with commands
rails new board --skip-bundle
...
rake db:create
I have message like "XXXXX already exists" which is not consistent and indicates that something goes wrong.
Reproducing:
rails new board --skip-bundle
...
$ rake db:migrate
rake aborted!
FATAL: database "boardio" does not exist
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
If to try to create db then:
$ rake db:create
boardio already exists
It says here "exists". It just said "does not exist": Why rake gives a wrong message? What is going wrong? After this migration seems runs OK:
$ rake db:migrate
== CreateMyTables: migrating ==========================
-- create_table("users")
NOTICE: CREATE TABLE will create ........column "users.id"
.............
Details about versions:
$ ruby --version
ruby 1.9.2p290 (2011-07-09 revision 32553) [i686-linux]
$ rails --version
Rails 3.1.3
Thank you.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.