{"action":"created","issue":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/569","labels_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/569/comments","events_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/569/events","html_url":"https://github.com/rsim/oracle-enhanced/issues/569","id":65914423,"number":569,"title":"error in db migration when using references","user":{"login":"shannonfuit","id":7451283,"avatar_url":"https://avatars.githubusercontent.com/u/7451283?v=3","gravatar_id":"","url":"https://api.github.com/users/shannonfuit","html_url":"https://github.com/shannonfuit","followers_url":"https://api.github.com/users/shannonfuit/followers","following_url":"https://api.github.com/users/shannonfuit/following{/other_user}","gists_url":"https://api.github.com/users/shannonfuit/gists{/gist_id}","starred_url":"https://api.github.com/users/shannonfuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shannonfuit/subscriptions","organizations_url":"https://api.github.com/users/shannonfuit/orgs","repos_url":"https://api.github.com/users/shannonfuit/repos","events_url":"https://api.github.com/users/shannonfuit/events{/privacy}","received_events_url":"https://api.github.com/users/shannonfuit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-02T12:20:12Z","updated_at":"2015-04-26T18:28:42Z","closed_at":null,"body":" `t.references :outage, index: true, foreign_key: true`\r\nresults in error:\r\n>undefined method `add_index' for #><ActiveRecord::ConnectionAdapters::TableDefinition:0x0000000449afa8>\r\n\r\nits alias belongs_to works like a charm\r\n `t.belongs_to :outage, index: true, foreign_key: true`\r\nworks like a charm.\r\n\r\nfull stacktrace:\r\n````\r\nundefined method `add_index' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x0000000449afa8>/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:88:in `block in references_with_foreign_keys'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:86:in `each'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:86:in `references_with_foreign_keys'\r\n/data/no_tool_dir/na_tool/db/migrate/20150402105314_create_communications.rb:11:in `block in change'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:202:in `create_table'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:662:in `block in method_missing'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in `block in say_with_time'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in `say_with_time'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:652:in `method_missing'\r\n/data/no_tool_dir/na_tool/db/migrate/20150402105314_create_communications.rb:3:in `change'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:606:in `exec_migration'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:589:in `block in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:588:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:765:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:1041:in `block in ddl_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/transactions.rb:220:in `transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:1041:in `ddl_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:956:in `block in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in `each'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in `up'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:798:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:137:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'\r\nNoMethodError: undefined method `add_index' for #<ActiveRecord::ConnectionAdapters::TableDefinition:0x0000000449afa8>\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:88:in `block in references_with_foreign_keys'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:86:in `each'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/bundler/gems/oracle-enhanced-6ca7870adaa1/lib/active_record/connection_adapters/oracle_enhanced_schema_definitions.rb:86:in `references_with_foreign_keys'\r\n/data/no_tool_dir/na_tool/db/migrate/20150402105314_create_communications.rb:11:in `block in change'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:202:in `create_table'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:662:in `block in method_missing'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in `block in say_with_time'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:632:in `say_with_time'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:652:in `method_missing'\r\n/data/no_tool_dir/na_tool/db/migrate/20150402105314_create_communications.rb:3:in `change'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:606:in `exec_migration'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:590:in `block (2 levels) in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:589:in `block in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:292:in `with_connection'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:588:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:765:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:995:in `block in execute_migration_in_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:1041:in `block in ddl_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/transactions.rb:220:in `transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:1041:in `ddl_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:994:in `execute_migration_in_transaction'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:956:in `block in migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in `each'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:952:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:820:in `up'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/migration.rb:798:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/tasks/database_tasks.rb:137:in `migrate'\r\n/home/s-fuit/.rvm/gems/ruby-2.2.0/gems/activerecord-4.2.1/lib/active_record/railties/databases.rake:44:in `block (2 levels) in <top (required)>'\r\n````"},"comment":{"url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/comments/96418328","html_url":"https://github.com/rsim/oracle-enhanced/issues/569#issuecomment-96418328","issue_url":"https://api.github.com/repos/rsim/oracle-enhanced/issues/569","id":96418328,"user":{"login":"yahonda","id":73684,"avatar_url":"https://avatars.githubusercontent.com/u/73684?v=3","gravatar_id":"","url":"https://api.github.com/users/yahonda","html_url":"https://github.com/yahonda","followers_url":"https://api.github.com/users/yahonda/followers","following_url":"https://api.github.com/users/yahonda/following{/other_user}","gists_url":"https://api.github.com/users/yahonda/gists{/gist_id}","starred_url":"https://api.github.com/users/yahonda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yahonda/subscriptions","organizations_url":"https://api.github.com/users/yahonda/orgs","repos_url":"https://api.github.com/users/yahonda/repos","events_url":"https://api.github.com/users/yahonda/events{/privacy}","received_events_url":"https://api.github.com/users/yahonda/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T18:28:42Z","updated_at":"2015-04-26T18:28:42Z","body":"Thanks for the update. "}}