Include environment in db:setup task. If railties contain migrations 'rake db:schema:load' imports all migrations in schema_migrations table, while 'rake db:setup' does not.