{"action":"created","issue":{"url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/230","repository_url":"https://api.github.com/repos/SchemaPlus/schema_plus","labels_url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/230/comments","events_url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/230/events","html_url":"https://github.com/SchemaPlus/schema_plus/issues/230","id":139280901,"number":230,"title":"Issue when upgrading from Rails 4.2.5.2 to 4.2.6","user":{"login":"nesrual","id":726682,"avatar_url":"https://avatars.githubusercontent.com/u/726682?v=3","gravatar_id":"","url":"https://api.github.com/users/nesrual","html_url":"https://github.com/nesrual","followers_url":"https://api.github.com/users/nesrual/followers","following_url":"https://api.github.com/users/nesrual/following{/other_user}","gists_url":"https://api.github.com/users/nesrual/gists{/gist_id}","starred_url":"https://api.github.com/users/nesrual/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nesrual/subscriptions","organizations_url":"https://api.github.com/users/nesrual/orgs","repos_url":"https://api.github.com/users/nesrual/repos","events_url":"https://api.github.com/users/nesrual/events{/privacy}","received_events_url":"https://api.github.com/users/nesrual/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-03-08T13:40:34Z","updated_at":"2016-03-14T00:51:25Z","closed_at":"2016-03-14T00:51:25Z","body":"When trying to migrate I get the following error. Migrations works fine in 4.2.5.2 however when upgrading to 4.2.6 it seems to be broken:\r\n\r\n    rake aborted!\r\n    NoMethodError: undefined method `values' for []:Array\r\n    Did you mean?  values_at\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_plus_foreign_keys-0.1.2/lib/schema_plus/foreign_keys/middleware/sql.rb:8:in `after'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:47:in `block in execute'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:46:in `each'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:46:in `execute'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:20:in `start'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_monkey-2.1.3/lib/schema_monkey/stack.rb:34:in `start'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_plus_core-0.6.2/lib/schema_plus/core/active_record/connection_adapters/abstract_adapter.rb:47:in `visit_TableDefinition'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/schema_creation.rb:14:in `accept'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/schema_statements.rb:222:in `create_table'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_plus_core-0.6.2/lib/schema_plus/core/active_record/connection_adapters/abstract_adapter.rb:28:in `block in create_table'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:55:in `call_implementation'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:85:in `_modware_continue'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:74:in `block in _modware_call'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_plus_foreign_keys-0.1.2/lib/schema_plus/foreign_keys/middleware/migration.rb:14:in `around'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:73:in `_modware_call'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:83:in `_modware_continue'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:77:in `_modware_call'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:44:in `execute'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/modware-0.1.2/lib/modware/stack.rb:20:in `start'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_monkey-2.1.3/lib/schema_monkey/stack.rb:34:in `start'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/schema_plus_core-0.6.2/lib/schema_plus/core/active_record/connection_adapters/abstract_adapter.rb:27:in `create_table'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/schema_migration.rb:29:in `create_table'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/schema_statements.rb:836:in `initialize_schema_migrations_table'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/migration.rb:925:in `initialize'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/migration.rb:823:in `new'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/migration.rb:823:in `up'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/migration.rb:801:in `migrate'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/tasks/database_tasks.rb:137:in `migrate'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/gems/activerecord-4.2.6/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/bin/ruby_executable_hooks:15:in `eval'\r\n    /Users/XXXXX/.rvm/gems/ruby-2.3.0@some_gemset/bin/ruby_executable_hooks:15:in `<main>'\r\n    Tasks: TOP => db:migrate\r\n    (See full trace by running task with --trace)\r\n\r\nUsing Ruby 2.3 under OSX, RVM 1.26.11"},"comment":{"url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/comments/196091537","html_url":"https://github.com/SchemaPlus/schema_plus/issues/230#issuecomment-196091537","issue_url":"https://api.github.com/repos/SchemaPlus/schema_plus/issues/230","id":196091537,"user":{"login":"ronen","id":125620,"avatar_url":"https://avatars.githubusercontent.com/u/125620?v=3","gravatar_id":"","url":"https://api.github.com/users/ronen","html_url":"https://github.com/ronen","followers_url":"https://api.github.com/users/ronen/followers","following_url":"https://api.github.com/users/ronen/following{/other_user}","gists_url":"https://api.github.com/users/ronen/gists{/gist_id}","starred_url":"https://api.github.com/users/ronen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ronen/subscriptions","organizations_url":"https://api.github.com/users/ronen/orgs","repos_url":"https://api.github.com/users/ronen/repos","events_url":"https://api.github.com/users/ronen/events{/privacy}","received_events_url":"https://api.github.com/users/ronen/received_events","type":"User","site_admin":false},"created_at":"2016-03-14T00:51:25Z","updated_at":"2016-03-14T00:51:25Z","body":"Hi all, with further work by @dholdren in SchemaPlus/schema_plus_foreign_keys#8 and some more tweaks to schema_dev, the builds all seem to be passing cleanly for all tested versions of AR.\r\n\r\nI've just released v0.1.3 of schema_plus_foreign_keys  (beat you to it @lowjoel, thanks for the offer :)\r\n\r\nThanks everyone.  I'm closing this out, but don't hestitate to open another if something still seems awry."}}