Having trouble linking my supabase project into cursor
Before i begin, to preface, i am just a high school kid playing around with this, so the solution to my issue may be blatantly obvious to an experienced programmer. I apologize for that. Anyways. I have been trying to integrate a supabase project into my cursor project. I am using rails as my framework. I have gotten to the point where i make sure all credentials in my database.yml and credentials.yml files are saved, and correct. However, when i run the migration command (rails db:drop db:create db:migrate) this error appears.
bin/rails aborted!
ActiveRecord::ConnectionNotEstablished: connection to server at "2600:1f16:1cd0:3303:a929:4f05:b245:2dfc", port 5432 failed: Connection refused (ActiveRecord::ConnectionNotEstablished)
Is the server running on that host and accepting TCP/IP connections?
Caused by:
PG::ConnectionBad: connection to server at "2600:1f16:1cd0:3303:a929:4f05:b245:2dfc", port 5432 failed: Connection refused (PG::ConnectionBad)
Is the server running on that host and accepting TCP/IP connections?
Tasks: TOP => db:drop => db:check_protected_environments
(See full trace by running task with --trace)
All sources, including cursor seem to have no answer as to what to do from here. Cursor only reccomends i run this command "psql -h db.pfumtqnvptsrywfevrto.supabase.co -U postgres -d postgres -p 5432" to check the connection, which results in this error statement (psql: error: connection to server at "db.pfumtqnvptsrywfevrto.supabase.co" (2600:1f16:1cd0:3303:a929:4f05:b245:2dfc), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?).
I dont know what to do from here. Ive cleared out all old files (sqlite database files), made sure my supabase project is active. I even completely deleted the project, rewrote everything, and i get the same errors. Any advice is appreciated.
bin/rails aborted!
ActiveRecord::ConnectionNotEstablished: connection to server at "2600:1f16:1cd0:3303:a929:4f05:b245:2dfc", port 5432 failed: Connection refused (ActiveRecord::ConnectionNotEstablished)
Is the server running on that host and accepting TCP/IP connections?
Caused by:
PG::ConnectionBad: connection to server at "2600:1f16:1cd0:3303:a929:4f05:b245:2dfc", port 5432 failed: Connection refused (PG::ConnectionBad)
Is the server running on that host and accepting TCP/IP connections?
Tasks: TOP => db:drop => db:check_protected_environments
(See full trace by running task with --trace)
All sources, including cursor seem to have no answer as to what to do from here. Cursor only reccomends i run this command "psql -h db.pfumtqnvptsrywfevrto.supabase.co -U postgres -d postgres -p 5432" to check the connection, which results in this error statement (psql: error: connection to server at "db.pfumtqnvptsrywfevrto.supabase.co" (2600:1f16:1cd0:3303:a929:4f05:b245:2dfc), port 5432 failed: Connection refused
Is the server running on that host and accepting TCP/IP connections?).
I dont know what to do from here. Ive cleared out all old files (sqlite database files), made sure my supabase project is active. I even completely deleted the project, rewrote everything, and i get the same errors. Any advice is appreciated.