Commit 4d77e24d by Trevor Committed by Cuong Tran

Use ANNOTATE_SKIP_ON_DB_MIGRATE ENV variable (#553)

parent 3cfde372
......@@ -158,7 +158,7 @@ If you want to run <code>rake db:migrate</code> as a one-off without running ann
you can do so with a simple environment variable, instead of editing the
+.rake+ file:
skip_on_db_migrate=1 rake db:migrate
ANNOTATE_SKIP_ON_DB_MIGRATE=1 rake db:migrate
== Options
......
......@@ -106,7 +106,7 @@ module Annotate
end
def self.skip_on_migration?
ENV['skip_on_db_migrate'] =~ TRUE_RE
ENV['ANNOTATE_SKIP_ON_DB_MIGRATE'] =~ TRUE_RE || ENV['skip_on_db_migrate'] =~ TRUE_RE
end
def self.include_routes?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment