-
Notifications
You must be signed in to change notification settings - Fork 208
Closed
Labels
Description
It appears that sqlite3 leads to rake tasks being executed twice:
$ cd /tmp
$ rails new foo
$ cd foo
$ bundle install
$ bundle exec rake db:create
db/test.sqlite3 already exists
db/development.sqlite3 already exists
$ bundle exec rake db:create
db/test.sqlite3 already exists
db/development.sqlite3 already exists
db/test.sqlite3 already exists
db/development.sqlite3 already exists
The same doesn't happen when disabling sqlite3:
$ sed "s/gem 'sqlite3'/gem 'mysql2'/" -i Gemfile
$ bundle install
$ $EDITOR config/database.yml # set up MySQL with database name "tmp"
$ bundle exec rake db:create
db/test.sqlite3 already exists
db/test.sqlite3 already exists
$ bundle exec rake db:create
db/test.sqlite3 already exists
db/test.sqlite3 already exists
tmp already exists
We've confirmed this on Ubuntu and OS X using Ruby 1.9.2 (both p180 and p290, via RVM) - however, it appears everything works fine with Ruby 1.8.7.