Skip to content

when creating no id is set #13

Description

@techbrownbags

I have an EXISTING redshift DB i'm using rails 5 against. Things are working great except when creating, in this case no id is set in the activerecord object.
I've tried save and create
Also, tried using some callbacks, setting id etc. I can't get max then set id because I'm using a identity column.

Here's a snippet from the table
id| integer| not null default "identity"(320804, 0, ('0,1'::character varying)::text)
"app_users_pkey" PRIMARY KEY, btree (id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions