—
Sent from Mailbox for iPhone

On Sat, Dec 21, 2013 at 5:17 AM, Yves Senn <notifications@github.com>
wrote:

>> @@ -122,6 +122,15 @@ class Railtie < Rails::Railtie # :nodoc:
>>      # and then establishes the connection.
>>      initializer "active_record.initialize_database" do |app|
>>        ActiveSupport.on_load(:active_record) do
>> +
>> +        class ActiveRecord::NoDatabase
>> +          def format(message)
>> +            message << "Run `$ bundle exec rake db:create` and "
>> +            message << "`$ bundle exec rake db:migrate` to create your database"
> this code lives in the Railtie so it should be fine to use `bin/rake`.
> Also why run both rake tasks separately when you could `bin/rake db:create db:migrate`?
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/rails/rails/pull/13427/files#r8517059