Revert "[webui][api] Sync configuration to backend on boot"
This reverts commit e9bd6d10. This was causing development systems to crash with a ActiveRecord::StatementInvalid: Mysql2::Error: Table 'api_development.configurations' doesn't exist Running the migrations to wasn't possible due to a failing SpacesInTrackerRegexen migration. ===== > vagrant exec rails s => Booting Unicorn => Rails 5.0.0.1 application starting in development on http://localhost:3000 => Run `rails server -h` for more startup options Custom development.vagrant-openSUSE-Leap.rb not found - using defaults Exiting /usr/lib64/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/client.rb:107:in `_query': Mysql2::Error: Table 'api_development.configurations' doesn't exist: SELECT `configurations`.* FROM `configurations` ORDER BY `configurations`.`id` ASC LIMIT 1 (ActiveRecord::StatementInvalid) from /usr/lib64/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/client.rb:107:in `block in query' from /usr/lib64/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/client.rb:106:in `handle_interrupt' from /usr/lib64/ruby/gems/2.3.0/gems/mysql2-0.4.4/lib/mysql2/client.rb:106:in `query' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `block in execute' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:566:in `block in log' from /usr/lib64/ruby/gems/2.3.0/gems/activesupport-5.0.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:560:in `log' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `execute' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:46:in `execute' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:225:in `execute_and_free' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:51:in `exec_query' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:373:in `select' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract/database_statements.rb:41:in `select_all' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/abstract/query_cache.rb:70:in `select_all' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:10:in `select_all' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/querying.rb:39:in `find_by_sql' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation.rb:699:in `exec_queries' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation.rb:580:in `load' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation.rb:260:in `records' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation.rb:256:in `to_a' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:561:in `find_nth_with_limit' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:590:in `find_nth_with_limit_and_offset' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:543:in `find_nth' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/relation/finder_methods.rb:122:in `first' from /usr/lib64/ruby/gems/2.3.0/gems/activerecord-5.0.0.1/lib/active_record/querying.rb:3:in `first' from /vagrant/src/api/config/environments/development.rb:60:in `block (2 levels) in <top (required)>'
Please register or sign in to comment