-
Notifications
You must be signed in to change notification settings - Fork 92
Open
Description
If I try to configure an observer for a class that contains a bitmask attribute, all hell breaks loose.
Here's the error when I do rake db:migrate:reset, for instance::
$ rake db:migrate:reset (in /Users/mark/proj/marafunds) rake aborted! PGError: ERROR: relation "users" does not exist LINE 4: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum
The workaround is to disable the observer, run the rake db:migrate:reset, then re-enable.
Metadata
Metadata
Assignees
Labels
No labels