Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
annotate
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
open-source
annotate
Commits
4d77e24d
Commit
4d77e24d
authored
7 years ago
by
Trevor
Committed by
Cuong Tran
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use ANNOTATE_SKIP_ON_DB_MIGRATE ENV variable (#553)
parent
3cfde372
develop
…
v3.2.0
v3.1.1
v3.1.1-release
v3.1.0
v3.0.3
v3.0.2
v3.0.0
v2.7.5
v2.7.4
v2.7.3
release/v3.0.1
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
README.rdoc
README.rdoc
+1
-1
annotate.rb
lib/annotate.rb
+1
-1
No files found.
README.rdoc
View file @
4d77e24d
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
lib/annotate.rb
View file @
4d77e24d
...
...
@@ -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?
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment