提交 a347487f 编写于 作者: P Prathamesh Sonpatki

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

- So that we can just copy paste the command and execute it
上级 1f85e1c9
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册