From 5900d25d897c7c1801cf637ba6a0df78bdd47995 Mon Sep 17 00:00:00 2001 From: yuh harata Date: Wed, 1 Aug 2018 15:54:25 +0900 Subject: [PATCH] Add description of how to control auto generate file type --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8bc2c73..6cdf1e6 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,18 @@ To generate a configuration file(config/initializers/schemate.rb), to set defaul $ rails g schemate:install +Edit this file to control auto generation, and output format. + 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: +If you want to export schema automatically with `rake db:migrate`, edit the file and change: config.auto_generate = true +By default, auto generate file type is markdown. +If you want to generate file as csv, edit the file and change: + + config.auto_generate_type = 'csv' + ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/eishis/schemate. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.