Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created April 8, 2019 08:12
Show Gist options
  • Save ohadlevy/fef302950f249bcc41bb4456a635173c to your computer and use it in GitHub Desktop.
Save ohadlevy/fef302950f249bcc41bb4456a635173c to your computer and use it in GitHub Desktop.
ActiveRecord::RecordNotFound: Couldn't find Setting with [WHERE "settings"."name" = ?]
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:343:in `raise_record_not_found_exception!'
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/relation/finder_methods.rb:132:in `first!'
/home/foreman/app/models/setting.rb:111:in `[]='
/home/foreman/db/seeds.d/050-taxonomies.rb:34:in `block (3 levels) in <top (required)>'
/home/foreman/vendor/ruby/2.5.0/gems/audited-4.8.0/lib/audited/auditor.rb:353:in `without_auditing'
/home/foreman/db/seeds.d/050-taxonomies.rb:8:in `block (2 levels) in <top (required)>'
/home/foreman/db/seeds.d/050-taxonomies.rb:7:in `each'
/home/foreman/db/seeds.d/050-taxonomies.rb:7:in `block in <top (required)>'
/home/foreman/app/models/concerns/foreman/thread_session.rb:104:in `as'
/home/foreman/app/models/concerns/foreman/thread_session.rb:110:in `as_anonymous_admin'
/home/foreman/db/seeds.d/050-taxonomies.rb:6:in `<top (required)>'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/home/foreman/db/seeds.rb:36:in `block (2 levels) in <top (required)>'
/home/foreman/app/models/concerns/foreman/thread_session.rb:104:in `as'
/home/foreman/app/models/concerns/foreman/thread_session.rb:110:in `as_anonymous_admin'
/home/foreman/db/seeds.rb:35:in `block in <top (required)>'
/home/foreman/db/seeds.rb:29:in `each'
/home/foreman/db/seeds.rb:29:in `<top (required)>'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `block in load'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:253:in `load_dependency'
/home/foreman/vendor/ruby/2.5.0/gems/activesupport-5.2.1/lib/active_support/dependencies.rb:281:in `load'
/home/foreman/vendor/ruby/2.5.0/gems/railties-5.2.1/lib/rails/engine.rb:551:in `load_seed'
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/tasks/database_tasks.rb:281:in `load_seed'
/home/foreman/vendor/ruby/2.5.0/gems/activerecord-5.2.1/lib/active_record/railties/databases.rake:194:in `block (2 levels) in <top (required)>'
/home/foreman/vendor/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:74:in `load'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:74:in `kernel_load'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli/exec.rb:28:in `run'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli.rb:463:in `exec'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor.rb:387:in `dispatch'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli.rb:27:in `dispatch'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/vendor/thor/lib/thor/base.rb:466:in `start'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/cli.rb:18:in `start'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/exe/bundle:30:in `block in <top (required)>'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/lib/bundler/friendly_errors.rb:124:in `with_friendly_errors'
/opt/rh/rh-ruby25/root/usr/local/share/gems/gems/bundler-2.0.1/exe/bundle:22:in `<top (required)>'
/home/foreman/bin/bundle:3:in `load'
/home/foreman/bin/bundle:3:in `<main>'
Tasks: TOP => db:seed
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment