jeudi 6 août 2015

ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "donors" does not exist

What is the issue with that? the code works 100% correctly but at once this problem start

rake aborted!

ActiveRecord::StatementInvalid: PG::UndefinedTable: ERROR: relation "donors" does not exist

LINE 5: WHERE a.attrelid = '"donors"'::regclass ^ : 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 = '"donors"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum

/home/ebryx/communityportal/app/models/donor.rb:4:in `'

/home/ebryx/communityportal/app/models/donor.rb:1:in `'

/home/ebryx/communityportal/config/routes.rb:55:in block in <top (required)>' /home/ebryx/communityportal/config/routes.rb:1:in'

/home/ebryx/communityportal/config/environment.rb:5:in `'

PG::UndefinedTable: ERROR: relation "donors" does not exist LINE 5: WHERE a.attrelid = '"donors"'::regclass ^ /home/ebryx/communityportal/app/models/donor.rb:4:in `'

/home/ebryx/communityportal/app/models/donor.rb:1:in `'

/home/ebryx/communityportal/config/routes.rb:55:in `block in '

/home/ebryx/communityportal/config/routes.rb:1:in `'

/home/ebryx/communityportal/config/environment.rb:5:in `'

Tasks: TOP => db:schema:load => environment

(See full trace by running task with --trace)

Aucun commentaire:

Enregistrer un commentaire