Skip to content

rake tasks executed twice (Ruby 1.9.2) #43

@FND

Description

@FND

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions