Skip to content

yuh-pen/schemate

 
 

Repository files navigation

Schemate Build Status Coverage Status

Export current schema of ActiveRecord models as markdown or CSV

The schema list (schemate.md) looks like this:

# Table name: `users` 
## Columns
|FieldName |Attitutde |Size |NULL |Default |Comment |
|---|---|---|---|---|---|
|id |integer |8 |false | ||
|name |string |255 |true | ||
|email |string |255 |false | ||
|crypted_password |string |255 |true | ||
|salt |string |255 |true | ||

Installation

Add this line to your application's Gemfile:

gem 'schemate'

And then execute:

$ bundle

Or install it yourself as:

$ gem install schemate

Usage

Export schema to CSV:

$ bundle exec rake export_schema

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 code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Schemate project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%