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:
parent
1f85e1c9f3
commit
a347487f03
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue