{"action":"closed","issue":{"url":"https://api.github.com/repos/zdennis/activerecord-import/issues/497","repository_url":"https://api.github.com/repos/zdennis/activerecord-import","labels_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/497/labels{/name}","comments_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/497/comments","events_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/497/events","html_url":"https://github.com/zdennis/activerecord-import/issues/497","id":293993985,"number":497,"title":"ActiveModel::MissingAttributeError: can't write unknown attribute `tags`","user":{"login":"itay-grudev","id":2123767,"avatar_url":"https://avatars2.githubusercontent.com/u/2123767?v=4","gravatar_id":"","url":"https://api.github.com/users/itay-grudev","html_url":"https://github.com/itay-grudev","followers_url":"https://api.github.com/users/itay-grudev/followers","following_url":"https://api.github.com/users/itay-grudev/following{/other_user}","gists_url":"https://api.github.com/users/itay-grudev/gists{/gist_id}","starred_url":"https://api.github.com/users/itay-grudev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/itay-grudev/subscriptions","organizations_url":"https://api.github.com/users/itay-grudev/orgs","repos_url":"https://api.github.com/users/itay-grudev/repos","events_url":"https://api.github.com/users/itay-grudev/events{/privacy}","received_events_url":"https://api.github.com/users/itay-grudev/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-02-02T19:16:21Z","updated_at":"2018-02-04T17:18:34Z","closed_at":"2018-02-04T17:18:34Z","author_association":"NONE","body":"I am encountering this strange issue on my production server which I cannot understand.\r\n\r\nOn my side of the code I have the following:\r\n\r\n```ruby\r\nWhatever.import whatevers, on_duplicate_key_update: {\r\n  columns: WHATEVER_FIELDS - [\r\n    :id, :description, :created_at, :updated_at, :image, :tags\r\n  ]\r\n}\r\n```\r\n\r\n```ruby\r\nActiveModel::MissingAttributeError: can't write unknown attribute `tags`\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/attribute.rb:182:in `with_value_from_database'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/attribute_set.rb:53:in `write_from_user'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/attribute_methods/write.rb:50:in `write_attribute_with_type_cast'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/attribute_methods/write.rb:32:in `write_attribute'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-5.0.6/lib/active_record/attribute_methods.rb:361:in `[]='\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:647:in `block (2 levels) in import_with_validations'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:647:in `each_pair'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:647:in `block in import_with_validations'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:645:in `each'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:645:in `each_with_index'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:645:in `import_with_validations'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:602:in `import_helper'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/activerecord-import-0.22.0/lib/activerecord-import/import.rb:458:in `import'\r\n/home/deploy/app/releases/20180202184724/lib/tasks/data.rake:244:in `block (2 levels) in <top (required)>'\r\n/home/deploy/app/shared/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `load'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:74:in `kernel_load'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli/exec.rb:27:in `run'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli.rb:360:in `exec'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor.rb:369:in `dispatch'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli.rb:20:in `dispatch'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/vendor/thor/lib/thor/base.rb:444:in `start'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/cli.rb:10:in `start'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/exe/bundle:35:in `block in <top (required)>'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/lib/bundler/friendly_errors.rb:121:in `with_friendly_errors'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/gems/bundler-1.15.1/exe/bundle:27:in `<top (required)>'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/bin/bundle:23:in `load'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/bin/bundle:23:in `<main>'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `eval'\r\n/home/deploy/.rvm/gems/ruby-2.3.4/bin/ruby_executable_hooks:15:in `<main>'\r\nTasks: TOP => data:import\r\n(See full trace by running task with --trace)\r\n```"}}
{"actor":{"display_login":"itay-grudev"}}