Skip to content

Commit 4d77e24

Browse files
trevorrjohnctran
authored andcommitted
Use ANNOTATE_SKIP_ON_DB_MIGRATE ENV variable (#553)
1 parent 3cfde37 commit 4d77e24

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.rdoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ If you want to run <code>rake db:migrate</code> as a one-off without running ann
158158
you can do so with a simple environment variable, instead of editing the
159159
+.rake+ file:
160160

161-
skip_on_db_migrate=1 rake db:migrate
161+
ANNOTATE_SKIP_ON_DB_MIGRATE=1 rake db:migrate
162162

163163

164164
== Options

lib/annotate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def self.reset_options
106106
end
107107

108108
def self.skip_on_migration?
109-
ENV['skip_on_db_migrate'] =~ TRUE_RE
109+
ENV['ANNOTATE_SKIP_ON_DB_MIGRATE'] =~ TRUE_RE || ENV['skip_on_db_migrate'] =~ TRUE_RE
110110
end
111111

112112
def self.include_routes?

0 commit comments

Comments
 (0)