Closed Empact closed 2 years ago
This needs work as sequel migration doesn't implement reversible
.
Options include:
up
and down
in a single migration, which will produce a good amount of duplicationup
and down
do not produce duplicationAt this time I would go with the 3rd option, adding a comment to enable citext.
I'm preparing to add support for database functions soonish, and that will probably require splitting change
to up
& down
, so I can incorporate enabling the citext extension after those changes.
I figured out a workaround where we get to keep the change
block, by rescuing NoMethodError
when reverting the migration. It's a bit of a hack, but at least it will work until we add explicit down
blocks.
Follow-up to https://github.com/janko/rodauth-rails/pull/117