Skip to content

Instantly share code, notes, and snippets.

@glinesbdev
Created July 25, 2014 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save glinesbdev/754a7327d216a7ddb086 to your computer and use it in GitHub Desktop.
Save glinesbdev/754a7327d216a7ddb086 to your computer and use it in GitHub Desktop.
Import users error
irb(main):023:0> a = Authentication.new(platform_id: 235, user_id: 13036)
=> #<Authentication id: nil, platform_id: 235, user_id: 13036, receive_newsletter: true, roles_mask: nil, created_at: nil, updated_at: nil, mailchimp_registered: false, accepted_terms: nil, accepted_accredited_terms: nil, meta: nil, additional_fields: {}>
irb(main):024:0> a.save
(1.9ms) BEGIN
Platform Load (1.9ms) SELECT "platforms".* FROM "platforms" WHERE "platforms"."id" = 235 LIMIT 1
(1.7ms) ROLLBACK
NoMethodError: undefined method `custom_attributes' for nil:NilClass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment