You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 13, 2022. It is now read-only.
MYSQL_DATABASE_URL is set in initializer from env var.
rake task for configuring annotate:
task:set_annotation_optionsdo# Just some example settings from annotate 2.6.0.beta1Annotate.set_defaults({'position_in_routes'=>"before",'position_in_class'=>"before",'position_in_test'=>"before",'position_in_fixture'=>"before",'position_in_factory'=>"before",'show_indexes'=>"true",# if false it works'simple_indexes'=>"false",'model_dir'=>"app/models",'include_version'=>"false",'require'=>"",'exclude_tests'=>"true",'exclude_fixtures'=>"false",'exclude_factories'=>"false",'ignore_model_sub_dir'=>"false",'skip_on_db_migrate'=>"false",'format_bare'=>"true",'format_rdoc'=>"false",'format_markdown'=>"false",'sort'=>"true",'force'=>"false",'trace'=>"true",})end
Basically A::Api connects to postgres by default (database.yml) and B::Foo connects to MySQL. When I remove schema_plus gem, or downgrade it to 1.8.9 or set show_indexes to false in the task it works. So I assume it is an issue in schema_plus (schema_plus_pg_indexes perhaps?). The order in which the models are annotated is important in order to reproduce this.
Hi guys, I have this error when I updated schema_plus from 1.8.9 to 2.0.0
Output:
I have two 2 models: A::Api and B::Foo
so A::Api model is in app/models/a dir and B::Foo is in app/models/b
A::Api model
B::Foo model
And there is also B::Base in app/models/b
MYSQL_DATABASE_URL is set in initializer from env var.
rake task for configuring annotate:
Basically A::Api connects to postgres by default (database.yml) and B::Foo connects to MySQL. When I remove schema_plus gem, or downgrade it to 1.8.9 or set show_indexes to false in the task it works. So I assume it is an issue in schema_plus (schema_plus_pg_indexes perhaps?). The order in which the models are annotated is important in order to reproduce this.
Environment:
The text was updated successfully, but these errors were encountered: