error message: No association found for name 'unsubscribes'. Has it been defined yet?

496 views
Skip to first unread message

il jung Kang

unread,
May 7, 2013, 4:48:18 AM5/7/13
to catar...@googlegroups.com
error message:

fund@ubuntu:~/railsApps/catarse$ rails s
=> Booting WEBrick
=> Rails 3.2.12 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
problem while using OauthProvider model:
 'PG::Error: ERROR:  relation "oauth_providers" does not exist
LINE 5:              WHERE a.attrelid = '"oauth_providers"'::regclas...
                                        ^
:             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 = '"oauth_providers"'::regclass
               AND a.attnum > 0 AND NOT a.attisdropped
             ORDER BY a.attnum
'
No association found for name 'unsubscribes'. Has it been defined yet?
Exiting
/home/fund/railsApps/catarse/app/models/project.rb:101:in `<class:Project>': uni                 nitialized constant VideoInfo::Youtube (NameError)

help me.
 thanks you.


Eric Harris-Braun

unread,
May 25, 2013, 7:38:27 PM5/25/13
to catar...@googlegroups.com
I see this exact same message as part of initial rake db:migrate.  I'd too would like some help figuring this out.  Anybody know what's causing this?

-e

Rafael Barboza

unread,
May 26, 2013, 9:24:03 PM5/26/13
to catar...@googlegroups.com

Actually, to login you need a omniauth method in the DB, so if you run a rake db:seed and restart the server you'll reach the login page normally.


The PG::error is caused by some initializers, and will not affect the migration.


More info here: https://github.com/catarse/catarse/wiki/Fixing-the-%22No-route-matches-%7B%3Acontroller%3D-%22omniauth_callbacks%22...%22-error-after-db%3Amigrate


--
Rafael Barboza
@rbarboza
--
You received this message because you are subscribed to the Google Groups "Catarse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to catarse-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Eric Harris-Braun

unread,
May 30, 2013, 3:18:49 PM5/30/13
to catar...@googlegroups.com
Hmm, the PG::error may be a red herring, but a ruby crash that is happening in the migration which is preventing it from completing because I can't run a rake db:seed as it complains that the migration is incomplete.  Here's a pastie to the backtrace:  http://pastie.org/7984500

The migration from scratch is definitely not working.  Any help would be greatly appreciated.  Thanks,

-Eric

Pravin Mishra

unread,
Aug 22, 2013, 12:47:37 AM8/22/13
to catar...@googlegroups.com
Does any one solve this. As Eric said, we can't run seed as migrations are pending.

Any help will be appreciated.

Giulliano Bueno

unread,
Aug 22, 2013, 5:54:51 AM8/22/13
to catar...@googlegroups.com
I will take a look. What is the issue number on git?


On Thu, Aug 22, 2013 at 1:47 AM, Pravin Mishra <pravinm...@gmail.com> wrote:
Does any one solve this. As Eric said, we can't run seed as migrations are pending.

Any help will be appreciated.

--
You received this message because you are subscribed to the Google Groups "Catarse Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to catarse-dev...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Giulliano A. Bueno
Tecnologia da Informação

Pravin Mishra

unread,
Aug 22, 2013, 1:06:24 PM8/22/13
to catar...@googlegroups.com
Solved, Issue was with postgresql.

jo...@wtx.com.au

unread,
Sep 6, 2013, 8:27:59 AM9/6/13
to catar...@googlegroups.com
I installed:

sudo apt-get install postgresql-contrib

Then restarted the server and it worked for me.
I am running ubuntu 12.04
Reply all
Reply to author
Forward
0 new messages