diff options
author | Andrey Novikov <envek@envek.name> | 2016-01-03 21:13:53 +0300 |
---|---|---|
committer | Andrey Novikov <envek@envek.name> | 2016-04-16 10:17:26 +0300 |
commit | c690b9ce39c893077b48fa5b27af87e995f97e9b (patch) | |
tree | 925a00ba04b8a144041b6c823bd8bceacd6084f1 /Gemfile | |
parent | 39e087cbf5628ecc351fc86a3a1e320be193bf29 (diff) | |
download | rails-c690b9ce39c893077b48fa5b27af87e995f97e9b.tar.gz rails-c690b9ce39c893077b48fa5b27af87e995f97e9b.tar.bz2 rails-c690b9ce39c893077b48fa5b27af87e995f97e9b.zip |
Add support for specifying comments for tables, columns, and indexes.
Comments are specified in migrations, stored in database itself (in its schema),
and dumped into db/schema.rb file.
This allows to generate good documentation and explain columns and tables' purpose
to everyone from new developers to database administrators.
For PostgreSQL and MySQL only. SQLite does not support comments at the moment.
See docs for PostgreSQL: http://www.postgresql.org/docs/current/static/sql-comment.html
See docs for MySQL: http://dev.mysql.com/doc/refman/5.7/en/create-table.html
Diffstat (limited to 'Gemfile')
0 files changed, 0 insertions, 0 deletions