diff options
author | Azul <azul@leap.se> | 2013-11-19 11:51:42 +0100 |
---|---|---|
committer | Azul <azul@leap.se> | 2013-11-19 11:51:47 +0100 |
commit | e7a8b49ae30bce36846a5ab8f1fa2bb981100224 (patch) | |
tree | 90e7f54be3233ef789f31ba701ca368bc194d01c /config/application.rb | |
parent | d2eaffde87286c0cc9c0658503a60706759f7f51 (diff) |
add dump_design_docs to CouchRest::Model::Utils:Migrate
This is similar to the migrations but instead of uploading the design
documents to couch it stores them in
tmp/database/design.json
within the rails directory.
database is the supposed database name without prefixes or suffixes
design is the name of the design doc CouchRest model would have created
The files also contain a couchrest checksum so couchrest can detect they
are up to date.
This commit also cleans up a few redundant things in the extension to
CouchRest::Model:Utils::Migrate that we used to have. There's no need
to loop through the 'normal' models in load_all_models_with_engines
since load_all_models_without_engines already does that. We were also
overwriting all_models_and_proxies with exactly the same code as in
the original.
Diffstat (limited to 'config/application.rb')
0 files changed, 0 insertions, 0 deletions