I have table without in my DB.
Rails try to use non-existent sequence and try to write value into
non-existent primary key. And i have DB error.
How to use model with such table?
Did you or a DBA create a compound one instead of a simple one?
Or, did you have a compound one all along?
Table had not any PK.
Table has not any PK now.
I tried use set_primary_key :column_name but it didn’t work. When i
tried to save row i had got error. I don’t know why.
I tried use this gem and use set_primary_keys :column_name - it