Arkadiy Zabazhanov
Arkadiy Zabazhanov
Сlear. Activeuuid is adapter-dependent feature. As you can see here https://github.com/jashmenn/activeuuid/blob/master/lib/activeuuid/patches.rb#L117 - only native AR sqlite3 adapter is supported, so you can implement similar patch for your adapter or just...
Can you show related migrations? Also rails version.
Please try `t.uuid :id, primary_key: true`
Yes, it is not nessesary to set primary_key on model level. And yes, there is no id key in schema. Rails schema dumper wasn't hacked yet - it is too...
Regarding the first question - please, show your sources. The second - try to redefine https://github.com/jashmenn/activeuuid/blob/master/lib/activeuuid/uuid.rb#L119 at your model.
Looks proper, except `add_index :surveys, :id`, primary keys in sql are indexed by default. Still didn't get you. What is "MUL" then? Where did you see this?
Ah, got it. It is MUL because of `add_index :surveys, :id`. Just remove this line and it will become PRI
If you ask me - there is no indication to use activeuuid at all. In your place, I would make a usual autoincrement id and additional token field with uniq...
@ilyakatz frankly, I don't see it as a breaking change at all, I don't see any reason to make the gem more complex with new config option in this particular...
Hey, can you just rebase it?