Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

database migrations fail when decorator invokes form_fields and table does not exist #4

Closed
RianaFerreira opened this issue Jan 23, 2017 · 1 comment
Labels

Comments

@RianaFerreira
Copy link

RianaFerreira commented Jan 23, 2017

I've included a condition to check if the db table exists, so that this code is skipped when the migrations are run.

  if ActiveRecord::Base.connection.table_exists? 'admins'
    self.form_fields[:password] = {
      type: 'password',
      label: 'Password',
      name: 'password'
    }
  end

Without the above check this error is triggered when running rails db:drop or rails db:migrate

$ rails db:migrate
rails aborted!
ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR:  relation "admins" does not exist
LINE 8:                WHERE a.attrelid = '"admins"'::regclass
                                          ^
:               SELECT a.attname, format_type(a.atttypid, a.atttypmod),
                     pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod,
             (SELECT c.collname FROM pg_collation c, pg_type t
               WHERE c.oid = a.attcollation AND t.oid = a.atttypid AND a.attcollation <> t.typcollation),
                     col_description(a.attrelid, a.attnum) AS comment
                FROM pg_attribute a LEFT JOIN pg_attrdef d
                  ON a.attrelid = d.adrelid AND a.attnum = d.adnum
               WHERE a.attrelid = '"admins"'::regclass
                 AND a.attnum > 0 AND NOT a.attisdropped
               ORDER BY a.attnum
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `async_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `block in query'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:589:in `block in log'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:583:in `log'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:87:in `query'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql_adapter.rb:739:in `column_definitions'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:227:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/schema_cache.rb:56:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/schema_cache.rb:62:in `columns_hash'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:441:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/attributes.rb:233:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/attribute_decorators.rb:28:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:436:in `load_schema'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:344:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator/fields_builder.rb:7:in `general_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:57:in `general_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:4:in `fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:18:in `form_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/decorators/wallaby/resource_decorator.rb:20:in `form_fields'
/Users/fuzzyri/git/stockland_api/app/decorators/admin_decorator.rb:35:in `<class:AdminDecorator>'
/Users/fuzzyri/git/stockland_api/app/decorators/admin_decorator.rb:1:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `block in load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:662:in `new_constants_in'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:476:in `load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:375:in `block in require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:511:in `load_missing_constant'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:268:in `const_get'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:268:in `block in constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `inject'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:16:in `block in preload'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:13:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:13:in `preload'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:24:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `block in load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:662:in `new_constants_in'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:476:in `load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:375:in `block in require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:511:in `load_missing_constant'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:7:in `block (2 levels) in <top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:855:in `scope'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:6:in `block in <top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:389:in `instance_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:389:in `eval_block'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:371:in `draw'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:1:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `load_paths'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:16:in `reload!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:26:in `block in updater'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/file_update_checker.rb:77:in `execute'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:27:in `updater'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/finisher.rb:119:in `block in <module:Finisher>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `run'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:352:in `initialize!'
/Users/fuzzyri/git/stockland_api/config/environment.rb:5:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:328:in `require_environment!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/bugsnag-5.0.1/lib/bugsnag/rake.rb:12:in `execute_with_bugsnag'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/Users/fuzzyri/git/stockland_api/bin/rails:9:in `require'
/Users/fuzzyri/git/stockland_api/bin/rails:9:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/fuzzyri/git/stockland_api/bin/spring:14:in `require'
/Users/fuzzyri/git/stockland_api/bin/spring:14:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
PG::UndefinedTable: ERROR:  relation "admins" does not exist
LINE 8:                WHERE a.attrelid = '"admins"'::regclass
                                          ^
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `async_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `block in query'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:589:in `block in log'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:583:in `log'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/database_statements.rb:87:in `query'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql_adapter.rb:739:in `column_definitions'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/postgresql/schema_statements.rb:227:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/schema_cache.rb:56:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/connection_adapters/schema_cache.rb:62:in `columns_hash'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:441:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/attributes.rb:233:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/attribute_decorators.rb:28:in `load_schema!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:436:in `load_schema'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activerecord-5.0.1/lib/active_record/model_schema.rb:344:in `columns'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator/fields_builder.rb:7:in `general_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:57:in `general_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:4:in `fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/adaptors/wallaby/active_record/model_decorator.rb:18:in `form_fields'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/lib/decorators/wallaby/resource_decorator.rb:20:in `form_fields'
/Users/fuzzyri/git/stockland_api/app/decorators/admin_decorator.rb:35:in `<class:AdminDecorator>'
/Users/fuzzyri/git/stockland_api/app/decorators/admin_decorator.rb:1:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `block in load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:662:in `new_constants_in'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:476:in `load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:375:in `block in require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:511:in `load_missing_constant'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:268:in `const_get'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:268:in `block in constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `inject'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/inflector/methods.rb:266:in `constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/core_ext/string/inflections.rb:66:in `constantize'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:16:in `block in preload'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:13:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:13:in `preload'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/app/routes/wallaby/resources_router.rb:24:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:477:in `block in load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:662:in `new_constants_in'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:476:in `load_file'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:375:in `block in require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `block in load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies/interlock.rb:11:in `loading'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:37:in `load_interlock'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:358:in `require_or_load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:511:in `load_missing_constant'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:203:in `const_missing'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:7:in `block (2 levels) in <top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/mapper.rb:855:in `scope'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:6:in `block in <top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:389:in `instance_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:389:in `eval_block'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/actionpack-5.0.1/lib/action_dispatch/routing/route_set.rb:371:in `draw'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/wallaby-5.0.0/config/routes.rb:1:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `block in load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:287:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `each'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:40:in `load_paths'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:16:in `reload!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:26:in `block in updater'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/file_update_checker.rb:77:in `execute'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:27:in `updater'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/routes_reloader.rb:7:in `execute_if_updated'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application/finisher.rb:119:in `block in <module:Finisher>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `instance_exec'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:30:in `run'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/initializable.rb:54:in `run_initializers'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:352:in `initialize!'
/Users/fuzzyri/git/stockland_api/config/environment.rb:5:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `block in require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:259:in `load_dependency'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/activesupport-5.0.1/lib/active_support/dependencies.rb:293:in `require'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:328:in `require_environment!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/application.rb:448:in `block in run_tasks_blocks'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/bugsnag-5.0.1/lib/bugsnag/rake.rb:12:in `execute_with_bugsnag'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
/Users/fuzzyri/git/stockland_api/bin/rails:9:in `require'
/Users/fuzzyri/git/stockland_api/bin/rails:9:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/rails.rb:28:in `call'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client/command.rb:7:in `call'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/client.rb:30:in `run'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/bin/spring:49:in `<top (required)>'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `load'
/Users/fuzzyri/.rvm/gems/ruby-2.3.3@geni/gems/spring-2.0.1/lib/spring/binstub.rb:31:in `<top (required)>'
/Users/fuzzyri/git/stockland_api/bin/spring:14:in `require'
/Users/fuzzyri/git/stockland_api/bin/spring:14:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
@tian-im tian-im added the bug label Feb 8, 2017
tian-im added a commit that referenced this issue Apr 5, 2017
1. Bugfix: database migrations fail when decorator invokes form_fields and table does not exist ([issue 4](#4))
2. Feature: Add partial to support password field ([issue 9](#9))
2. Bugfix: Using the right metadata for index/show/form partials respectively ([issue 12](#12))
tian-im added a commit that referenced this issue Apr 5, 2017
1. Bugfix: database migrations fail when decorator invokes form_fields and table does not exist ([issue 4](#4))
2. Feature: Add partial to support password field ([issue 9](#9))
2. Bugfix: Using the right metadata for index/show/form partials respectively ([issue 12](#12))
@tian-im
Copy link
Collaborator

tian-im commented Apr 21, 2017

@RianaFerreira let me know if the new release fix it for you :)

@tian-im tian-im closed this as completed Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants