You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an effort to make it as easy as possible to get up and running with Maybe, we should have a "setup" script to run.
I'm not attached to any specific method for that (and realistically don't have a lot of experience in this area), so open to suggestions.
The big things that need to happen are around database setup, specifically with rails db:setup and :migrate and then creating a read-only role.
After database setup, a read-only ai_user needs to be created:
CREATE ROLE ai_user WITH LOGIN PASSWORD 'YOUR_UNIQUE_PASSWORD';
GRANTSELECTON balances TO ai_user;
GRANTSELECTON accounts TO ai_user;
GRANTSELECTON connections TO ai_user;
GRANTSELECTON conversations TO ai_user;
GRANTSELECTON holdings TO ai_user;
GRANTSELECTON investment_transactions TO ai_user;
GRANTSELECTON messages TO ai_user;
GRANTSELECTON metrics TO ai_user;
GRANTSELECTON securities TO ai_user;
GRANTSELECTON security_prices TO ai_user;
GRANTSELECTON transactions TO ai_user;
And then after that, READONLY_DATABASE_URL needs to be set to postgres://ai_user:YOUR_UNIQUE_PASSWORD@localhost/maybe_ai_development in the .env file.
The text was updated successfully, but these errors were encountered:
In an effort to make it as easy as possible to get up and running with Maybe, we should have a "setup" script to run.
I'm not attached to any specific method for that (and realistically don't have a lot of experience in this area), so open to suggestions.
The big things that need to happen are around database setup, specifically with rails db:setup and :migrate and then creating a read-only role.
After database setup, a read-only
ai_user
needs to be created:And then after that,
READONLY_DATABASE_URL
needs to be set topostgres://ai_user:YOUR_UNIQUE_PASSWORD@localhost/maybe_ai_development
in the.env
file.The text was updated successfully, but these errors were encountered: