On Tuesday, May 17, 2016 at 10:34:01 AM UTC-7, Ning Ding wrote:
>
> 2016-05-17 13:00:04 UTC:172.31.20.153(60385):vydia@vydia:[4872]:STATEMENT: 
> SELECT "pg_attribute"."attname" AS "name", CAST("pg_attribute"."atttypid" 
> AS integer) AS "oid", CAST("basetype"."oid" AS integer) AS "base_oid", 
> format_type("basetype"."oid", "pg_type"."typtypmod") AS "db_base_type", 
> format_type("pg_type"."oid", "pg_attribute"."atttypmod") AS "db_type", 
> pg_get_expr("pg_attrdef"."adbin", "pg_class"."oid") AS "default", NOT 
> "pg_attribute"."attnotnull" AS "allow_null", COALESCE(("pg_attribute".
> "attnum" = ANY("pg_index"."indkey")), false) AS "primary_key" FROM 
> "pg_class" INNER JOIN "pg_attribute" ON ("pg_attribute"."attrelid" = 
> "pg_class"."oid") INNER JOIN "pg_type" ON ("pg_type"."oid" = 
> "pg_attribute"."atttypid") LEFT OUTER JOIN "pg_type" AS "basetype" ON (
> "basetype"."oid" = "pg_type"."typbasetype") LEFT OUTER JOIN "pg_attrdef" 
> ON (("pg_attrdef"."adrelid" = "pg_class"."oid") AND ("pg_attrdef"."adnum" 
> = "pg_attribute"."attnum")) LEFT OUTER JOIN "pg_index" ON (("pg_index".
> "indrelid" = "pg_class"."oid") AND ("pg_index"."indisprimary" IS TRUE)) 
> WHERE (("pg_attribute"."attisdropped" IS FALSE) AND ("pg_attribute".
> "attnum" > 0) AND ("pg_class"."oid" = CAST(CAST('"media"' AS regclass) AS 
> oid))) ORDER BY "pg_attribute"."attnum"
>
> 2016-05-17 13:00:04 UTC:172.31.20.153(60385):vydia@vydia:[4872]:ERROR: 
> relation "media" does not exist at character 15
>
> 2016-05-17 13:00:04 UTC:172.31.20.153(60385):vydia@vydia:[4872]:STATEMENT: 
> SELECT * FROM "media" LIMIT 1
>
>
>
>
>
> Is it related to set_dataset?( we used set_dataset for that)
> like 
>
> class MediaUser < Sequel::Model
>   set_dataset :medias_users
>
>   many_to_one :media
>   many_to_one :user
> end
>
>
You get that error because the media table does not exist.  Did you create 
it?  What's the result of DB.tables?

Thanks,
Jeremy

-- 
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/d/optout.

Reply via email to