Builder of FreelancerCashFlow; Fullstack Developer, HubSpot Expert & Content Manager. Code in Rails/js/Vue with a little serverless thrown into the mix. Love JAMStack.
databases link by convention to a given Rails app via the database.yml file in /config. When starting a new rails app, you set a flag on the rails new command: "rails new" options explained.
For different hosting environments [localhost, heroku, AWS, etc. etc.] it's easier to find their version of databases.yml and go with that.
see this line in the above link: --database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
So you would do: rails new myprojectname --database=postgresql
Thank you! yes makes total sense. I've been using the standard database that rails offers out of the box. Currently still learning my ways around rails and thought I could spice some things up.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
databases link by convention to a given Rails app via the database.yml file in /config. When starting a new rails app, you set a flag on the rails new command: "rails new" options explained.
For different hosting environments [localhost, heroku, AWS, etc. etc.] it's easier to find their version of databases.yml and go with that.
see this line in the above link: --database=DATABASE] # Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db/sqlserver/jdbcmysql/jdbcsqlite3/jdbcpostgresql/jdbc)
So you would do:
rails new myprojectname --database=postgresqlMakes sense?
Thank you! yes makes total sense. I've been using the standard database that rails offers out of the box. Currently still learning my ways around rails and thought I could spice some things up.