1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Lets not put fullstop at the end of a migration pending command

- So that we can just copy paste the command and execute it
This commit is contained in:
Prathamesh Sonpatki 2015-12-31 12:23:58 +05:30
parent 1f85e1c9f3
commit a347487f03

View file

@ -126,9 +126,9 @@ module ActiveRecord
class PendingMigrationError < MigrationError#:nodoc:
def initialize(message = nil)
if !message && defined?(Rails.env)
super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rails db:migrate RAILS_ENV=#{::Rails.env}.")
super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rails db:migrate RAILS_ENV=#{::Rails.env}")
elsif !message
super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rails db:migrate.")
super("Migrations are pending. To resolve this issue, run:\n\n\tbin/rails db:migrate")
else
super
end