Skip to content

Commit

Permalink
Merge 2d0cfcc into bc2670a
Browse files Browse the repository at this point in the history
  • Loading branch information
yuh-pen authored Jul 26, 2018
2 parents bc2670a + 2d0cfcc commit ce747cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ To generate a configuration file(config/initializers/schemate.rb), to set defaul
By default, schema is exported only when you run `schemate:export_csv` or `schemate:export_md`.
If you want to export schema as markdown automatically with `rake db:migrate`, edit the file and change:

config.auto_generate = false

To:

config.auto_generate = true

## Contributing
Expand Down
8 changes: 6 additions & 2 deletions lib/generators/schemate/templates/schemate.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# frozen_string_literal: true
Schemate.configure do |config|
config.auto_generate = false
config.auto_generate_type = 'md'
# == Auto generate
# A schema list is generated automatically when you run rails:db
# config.auto_generate = true

# If you want to export schema as csv. `md` by default
# config.auto_generate_type = 'csv'
end

0 comments on commit ce747cd

Please sign in to comment.