I am trying to upgrade the rails version from 5.1.4 to 5.2.6
When I have remove self.cache_columns = true line from the oracle.rb file. As per the Documentation I ran rails db:schema:cache:dump and it generated a file for me db/schema_cache.yml.
My oracle.rb
ActiveSupport.on_load(:active_record) do
ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter.class_eval do
# true and false will be stored as 'Y' and 'N'
#self.emulate_booleans_from_strings = true
# start primary key sequences from 1 (and not 10000) and take just one next value in each session
#self.default_sequence_start_value = "1 NOCACHE INCREMENT BY 1"
# Use old visitor for Oracle 12c database
self.use_old_oracle_visitor = true
end
end
Now when I try to run rspec spec/ it shows me to run rails db:migrate RAILS_ENV=test
And when I run rails db:migrate RAILS_ENV=test It gives me the following error.
Note: My specs were earlier running but while upgrading it is failing. Also, when i see the below error it is trying to run the first migration not sure why
Warning: NLS_LANG is not set. fallback to US7ASCII.
The HashDiff constant used by this gem conflicts with another gem of a similar name. As of version 1.0 the HashDiff constant will be completely removed and replaced by Hashdiff. For more information see https://github.com/liufengyun/hashdiff/issues/45.
/Users/aniket_tiwari/download/my_project/config/initializers/toggle.rb:1: warning: already initialized constant CACHE_EXPIRY_TIME_IN_SECONDS
/Users/aniket_tiwari/download/my_project/config/initializers/toggle.rb:1: warning: previous definition of CACHE_EXPIRY_TIME_IN_SECONDS was here
/Users/aniket_tiwari/download/my_project/config/initializers/toggle.rb:2: warning: already initialized constant Toggle
/Users/aniket_tiwari/download/my_project/config/initializers/toggle.rb:2: warning: previous definition of Toggle was here
== 20171121052637 CreateRoles: migrating ======================================
-- create_table(:roles, {})
rails aborted!
StandardError: An error has occurred, all later migrations canceled:
OCIError: ORA-00955: name is already used by an existing object: CREATE TABLE "ROLES" ("ID" NUMBER(38) NOT NULL PRIMARY KEY, "NAME" VARCHAR2(255), "DESCRIPTION" VARCHAR2(255), "CREATED_AT" TIMESTAMP NOT NULL, "UPDATED_AT" TIMESTAMP NOT NULL)
stmt.c:243:in oci8lib_240.bundle
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/cursor.rb:131:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:272:in `exec_internal'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:263:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:428:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:97:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `block in execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb:36:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:229:in `create_table'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:871:in `block in method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `block in say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:860:in `method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration/compatibility.rb:34:in `create_table'
/Users/aniket_tiwari/download/my_project/db/migrate/20171121052637_create_roles.rb:3:in `change'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:814:in `exec_migration'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:797:in `block in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:796:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:977:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1345:in `ddl_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `each'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1212:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1036:in `up'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1011:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
bin/rails:4:in `<main>'
Caused by:
ActiveRecord::StatementInvalid: OCIError: ORA-00955: name is already used by an existing object: CREATE TABLE "ROLES" ("ID" NUMBER(38) NOT NULL PRIMARY KEY, "NAME" VARCHAR2(255), "DESCRIPTION" VARCHAR2(255), "CREATED_AT" TIMESTAMP NOT NULL, "UPDATED_AT" TIMESTAMP NOT NULL)
stmt.c:243:in oci8lib_240.bundle
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/cursor.rb:131:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:272:in `exec_internal'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:263:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:428:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:97:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `block in execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb:36:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:229:in `create_table'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:871:in `block in method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `block in say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:860:in `method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration/compatibility.rb:34:in `create_table'
/Users/aniket_tiwari/download/my_project/db/migrate/20171121052637_create_roles.rb:3:in `change'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:814:in `exec_migration'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:797:in `block in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:796:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:977:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1345:in `ddl_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `each'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1212:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1036:in `up'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1011:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:31:in `require'
bin/rails:4:in `<main>'
Caused by:
OCIError: ORA-00955: name is already used by an existing object
stmt.c:243:in oci8lib_240.bundle
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/cursor.rb:131:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:272:in `exec_internal'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/ruby-oci8-2.2.6.1/lib/oci8/oci8.rb:263:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:428:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/oci_connection.rb:97:in `exec'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `block in execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:581:in `block (2 levels) in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:580:in `block in log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activesupport-5.2.6/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:571:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/dbms_output.rb:36:in `log'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/database_statements.rb:13:in `execute'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-oracle_enhanced-adapter-5.2.8/lib/active_record/connection_adapters/oracle_enhanced/schema_statements.rb:229:in `create_table'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:871:in `block in method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `block in say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:840:in `say_with_time'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:860:in `method_missing'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration/compatibility.rb:34:in `create_table'
/Users/aniket_tiwari/download/my_project/db/migrate/20171121052637_create_roles.rb:3:in `change'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:814:in `exec_migration'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:798:in `block (2 levels) in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:797:in `block in migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:416:in `with_connection'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:796:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:977:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1292:in `block in execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1345:in `ddl_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1291:in `execute_migration_in_transaction'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1263:in `block in migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `each'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1262:in `migrate_without_lock'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1212:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1036:in `up'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/migration.rb:1011:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/tasks/database_tasks.rb:172:in `migrate'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/activerecord-5.2.6/lib/active_record/railties/databases.rake:60:in `block (2 levels) in <main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:23:in `block in perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands/rake/rake_command.rb:20:in `perform'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/command.rb:48:in `invoke'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/railties-5.2.6/lib/rails/commands.rb:18:in `<main>'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `require'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:23:in `block in require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/loaded_features_index.rb:92:in `register'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:22:in `require_with_bootsnap_lfi'
/Users/aniket_tiwari/.rvm/gems/ruby-2.4.0@my_project/gems/bootsnap-1.7.6/
I am trying to upgrade the rails version from 5.1.4 to 5.2.6
When I have remove self.cache_columns = true line from the oracle.rb file. As per the Documentation I ran
rails db:schema:cache:dump
and it generated a file for me db/schema_cache.yml.My oracle.rb
Now when I try to run rspec spec/ it shows me to run rails db:migrate RAILS_ENV=test
And when I run rails db:migrate RAILS_ENV=test It gives me the following error.
Note: My specs were earlier running but while upgrading it is failing. Also, when i see the below error it is trying to run the first migration not sure why
System configuration
Rails version: 5.2.6
activerecord-oracle_enhanced-adapter: activerecord-oracle_enhanced-adapter 5.2.8 ruby-oci8: 2.2.6.1
Ruby version: 2.4.0
Oracle Database version: 10.2.0.1.0