Skip to content

Cannot configure observer for class with bitmask-attribute #4

Description

@m5rk

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions