* Updates to make annotate smarter about when to touch a model
* Updates to make annotate smarter about when to touch a model
* Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes)
* Recognize column+type, and don't change a file unless the column+type combination of the new schema are different than that of the old (i.e., don't regenerate if columns happen to be in a different order. That's just how life is sometimes)
* Grab old specification even if it has \r\n as line endings rather than pure \ns
* Grab old specification even if it has \r\n as line endings rather than pure \ns
...
@@ -11,8 +12,7 @@
...
@@ -11,8 +12,7 @@
* If the schema is already in the model file, it will be replaced into the same location. If it didn't previously exist, it'll be placed according to the "position", as before.
* If the schema is already in the model file, it will be replaced into the same location. If it didn't previously exist, it'll be placed according to the "position", as before.
* Allow task loading from Rakefile for gems (plugin installation already auto-detects).
* Allow task loading from Rakefile for gems (plugin installation already auto-detects).
* Add skip_on_db_migrate option as well for people that don't want it
* Add skip_on_db_migrate option as well for people that don't want it
* Fix options parsing to convert strings to proper booleans. Change annotate to use opt
* Fix options parsing to convert strings to proper booleans
ions hash instead of ENV.
* Add support for Fabrication fabricators
* Add support for Fabrication fabricators
* Leave magic encoding comment intact
* Leave magic encoding comment intact
* Fix issue #14 - RuntimeError: Already memoized
* Fix issue #14 - RuntimeError: Already memoized
...
@@ -57,6 +57,10 @@
...
@@ -57,6 +57,10 @@
no replacement. It will be removed on or after 2011-10-01.`
no replacement. It will be removed on or after 2011-10-01.`
* Fix handling of files with no trailing newline when putting annotations at
* Fix handling of files with no trailing newline when putting annotations at
the end of the file.
the end of the file.
* Now works on tables with no primary key.
* Add --format=markdown option
* "Table name" annotation (if table name is different from model name)
* "Human name" annotation (enabling translation to non-English locales)