You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: