Skip to content

harmless but annoying bug in amber console #352

Description

@sam0x17
  1. create a blank app and create some model, let's say it's called User, and give it an attribute called 'email' with a unique constraint on it
  2. run amber console
  3. run u = User.new(name: 'Sam', email: 'test@test.com')
  4. run u.save
  5. run u -- you will notice the u that gets printed has a unique constraint violation error on it, even though the save was actually successful. If you then run u = User.first, you will see the correctly saved user, without any constraint violation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions