Closed luopio closed 9 years ago
Yeah, It was quite difficult to patch schema dumper, so it was never done. The solution - use sql schema.
Thanks. This works for me now
create_table :ahoy_events, id: false do |t|
t.binary :id, primary_key: true, limit: 16
t.binary :visit_id, limit: 16
[...]
... and adding self.primary_key = :id
in the models.
I'm integrating Ahoy with Rails 4.2.0.beta2 and thus using the git version of activeuuid. Given this migration:
Creates a schema like this:
Which causes an error like this on schema loading (e.g. when running tests):
I've been unsuccessful in figuring out where that sqlite_autoindex line comes from, but changing
t.uuid
tot.binary
seems to prevent it from happening. Is this a valid fix for sqlite? On the other hand, I'd very much like a migration that works both on our PostgreSQL servers and local development SQLites.