This repository has been archived by the owner on Mar 10, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 114
ERROR: relation "coupons_models_coupons" does not exist #18
Comments
Yes, you'll need to run the rake task From rake coupons:install:migrations # Copy migrations from coupons to application This will copy over the migration template. Running this migration creates the two tables you need: It's missing from the install guide. For reference, here's my schema.rb:
I have had this gem running merrily in production for about 5-6 months, so you should be able to achieve the same 👍 |
... And yes, the gem is already in my gemfile |
@LuisHCK You need to run |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Followed installation instructions as best as I could. I imagine there might be an generate coupons:install step that I am missing? Nothing in the readme about it. Anyone else getting this?
PG::UndefinedTable: ERROR: relation "coupons_models_coupons" does not exist LINE 5: WHERE a.attrelid = '"coupons_models_coupons"'... ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"coupons_models_coupons"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum
The text was updated successfully, but these errors were encountered: