BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
8278b763
Commit
8278b763
authored
May 06, 2016
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Auto annotate models on migration
[ci skip]
parent
47da013c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
auto_annotate_models.rake
lib/tasks/auto_annotate_models.rake
+44
-0
No files found.
lib/tasks/auto_annotate_models.rake
0 → 100644
View file @
8278b763
if
Rails
.
env
.
development?
task
:set_annotation_options
do
# You can override any of these by setting an environment variable of the
# same name.
Annotate
.
set_defaults
(
'routes'
=>
'false'
,
'position_in_routes'
=>
'before'
,
'position_in_class'
=>
'before'
,
'position_in_test'
=>
'before'
,
'position_in_fixture'
=>
'before'
,
'position_in_factory'
=>
'before'
,
'position_in_serializer'
=>
'before'
,
'show_foreign_keys'
=>
'true'
,
'show_indexes'
=>
'false'
,
'simple_indexes'
=>
'false'
,
'model_dir'
=>
'app/models'
,
'root_dir'
=>
''
,
'include_version'
=>
'false'
,
'require'
=>
''
,
'exclude_tests'
=>
'true'
,
'exclude_fixtures'
=>
'true'
,
'exclude_factories'
=>
'true'
,
'exclude_serializers'
=>
'true'
,
'exclude_scaffolds'
=>
'true'
,
'exclude_controllers'
=>
'true'
,
'exclude_helpers'
=>
'true'
,
'ignore_model_sub_dir'
=>
'false'
,
'ignore_columns'
=>
nil
,
'ignore_unknown_models'
=>
'false'
,
'hide_limit_column_types'
=>
'integer,boolean'
,
'skip_on_db_migrate'
=>
'false'
,
'format_bare'
=>
'true'
,
'format_rdoc'
=>
'false'
,
'format_markdown'
=>
'false'
,
'sort'
=>
'false'
,
'force'
=>
'false'
,
'trace'
=>
'false'
,
'wrapper_open'
=>
nil
,
'wrapper_close'
=>
nil
,
)
end
Annotate
.
load_tasks
end
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