aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2016-07-20 18:46:58 -0300
committerGitHub <noreply@github.com>2016-07-20 18:46:58 -0300
commitb334c19c0746fce218faf73bbb8594915fdfcf0a (patch)
tree8238c6b4456d85ef3bbf673522ad9df969f44d01
parentf88495d519f9bdacd542d61b4e8117eb4f79c173 (diff)
parent34672e669da887b40f9c35bdb49d146f166362f9 (diff)
downloadrails-b334c19c0746fce218faf73bbb8594915fdfcf0a.tar.gz
rails-b334c19c0746fce218faf73bbb8594915fdfcf0a.tar.bz2
rails-b334c19c0746fce218faf73bbb8594915fdfcf0a.zip
Merge pull request #25902 from etiennebarrie/remove-tabs-before-commands
Remove tab chars before commands to be run
-rw-r--r--activerecord/lib/active_record/migration.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/migration.rb b/activerecord/lib/active_record/migration.rb
index 81fe053fe1..fb2a23b797 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 bin/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 bin/rails db:migrate")
else
super
end
@@ -145,7 +145,7 @@ module ActiveRecord
class NoEnvironmentInSchemaError < MigrationError #:nodoc:
def initialize
- msg = "Environment data not found in the schema. To resolve this issue, run: \n\n\tbin/rails db:environment:set"
+ msg = "Environment data not found in the schema. To resolve this issue, run: \n\n bin/rails db:environment:set"
if defined?(Rails.env)
super("#{msg} RAILS_ENV=#{::Rails.env}")
else
@@ -168,7 +168,7 @@ module ActiveRecord
msg = "You are attempting to modify a database that was last run in `#{ stored }` environment.\n"
msg << "You are running in `#{ current }` environment. "
msg << "If you are sure you want to continue, first set the environment using:\n\n"
- msg << "\tbin/rails db:environment:set"
+ msg << " bin/rails db:environment:set"
if defined?(Rails.env)
super("#{msg} RAILS_ENV=#{::Rails.env}\n\n")
else