Skip to content

Commit

Permalink
Merge pull request #22866 from prathamesh-sonpatki/rm-dot-at-the-end-…
Browse files Browse the repository at this point in the history
…of-command

Lets not put fullstop at the end of a migration pending command
  • Loading branch information
rafaelfranca committed Dec 31, 2015
2 parents f2cd0ea + a347487 commit fb21325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/lib/active_record/migration.rb
Expand Up @@ -126,9 +126,9 @@ def initialize(name = nil)
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
Expand Down

0 comments on commit fb21325

Please sign in to comment.