aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrathamesh Sonpatki <csonpatki@gmail.com>2015-12-31 12:23:58 +0530
committerPrathamesh Sonpatki <csonpatki@gmail.com>2015-12-31 12:23:58 +0530
commita347487f03bac5d836f6ebb34f3042283d491ab7 (patch)
treedcf2e013ed7b888ae934ef2fb3a32ce14062d1fb
parent1f85e1c9f34c7b0bdc1bddad5f914d61cb2a5435 (diff)
downloadrails-a347487f03bac5d836f6ebb34f3042283d491ab7.tar.gz
rails-a347487f03bac5d836f6ebb34f3042283d491ab7.tar.bz2
rails-a347487f03bac5d836f6ebb34f3042283d491ab7.zip
Lets not put fullstop at the end of a migration pending command
- So that we can just copy paste the command and execute it
-rw-r--r--activerecord/lib/active_record/migration.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index ba238ea142..8c9eab436d 100644
--- a/activerecord/lib/active_record/migration.rb
+++ b/activerecord/lib/active_record/migration.rb
@@ -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