I added a table to my local env called schools
and it works fine in dev. In fact, he even works great in the production (heroics), but does not have time in production, and rake db:migrate
gives an error below.
I cannot even pre-compile assest (with RAILS_ENV = production), get access to any part of my application, including the rails console in production (heroku). Everything throws an error below. I lost a few hours on this, but don't feel any closer to figure it out. (Note: I have a '"..."'
link to table_name, which I think is part of the problem)
I switched from rails 3.1.0 to 3.1.3 to have something with this.
PGError: ERROR: relation "schools" does not exist LINE 4: WHERE a.attrelid = '"schools"'::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 = '"schools"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum
I am lost, how can this be. I read a few more questions on this topic, but no solution was visible. Thanks for the help. Any insight is greatly appreciated.
UPDATE --------------------------------------- ---------- -----
I just created a brand new application on heroku and ran rake db:migrate
and got the same error.
UPDATE 2
I cloned the application from the hero, and the "school" - in the scheme.
create_table "schools", :force => true do |t| ... ... end
UPDATE 3
I tried to return to rails 3.1.0, but this did not help.
UPDATE 4
Still working on it. I have not heard from the support of the hero.
UPDATE 5
Heroku support was able to verify that โschoolsโ are not a table in the database, but I still canโt access the console and the application.