How to create postgres database for Rails app manually?

hedgesky

How can I create postgres db for Rails app properly but in psql, not via rake db:create?

I mean, one can always write CREATE DATABASE project_name, but I don't know what happens in that rake task under the hood. Maybe there are a lot of additional params.

Update

After first answer I decided to clarify: I know how to write and use migrations, they are awesome, but my question not about them. It's about rake db:create task and pg adapter.

In other words, I just want to know which command in psql is equal to rake db:create.

jurhas

If you select the db on pgadmin III it will show you the sql instructions with the local things to load. They are very importanst if you have full text index on. You must run them from the database postgres.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to connect to MYSQL database manually with Rails?

From Dev

How to Manually Create a Migration File Rails 4

From Dev

On Heroku, how can I schedule the postgres database for my Rails app to be periodically reset?

From Dev

Postgres <=> Rails . How to auto-create a user from database.yml

From Dev

Couldn't create database for Rails app

From Dev

How to separate rails applications due to postgres database?

From Java

How to create User/Database in script for Docker Postgres

From Dev

how to create backup of postgres database using java

From Dev

Rails 4.1.1 Postgres app with Mysql Legacy database Import

From Dev

Heroku Deployment Error for Rails app using "postgres" Database

From Dev

Rails 4.1.1 Postgres app with Mysql Legacy database Import

From Dev

How to properly automatically/manually rotate log files for production Rails App

From Dev

Search too slow. How do I reindex postgres database in a rails app using pg_search gem?

From Dev

How to create mipmap manually?

From Dev

When rails app create database and collection when using MongoDb?

From Dev

How to set up Postgres database for local Rails project?

From Dev

How to create a "guided tour" in Rails app?

From Dev

Postgres on Docker. How can I create a database and a user?

From Dev

How to create or manage heroku_postgres database instance

From Dev

How to create or manage heroku_postgres database instance

From Dev

Postgres - How to use psql to create a database with the -c command and password authentication?

From Dev

How does official Postgres image create user and database with env variables?

From Dev

How do I use postgres in a Rails app template?

From Dev

How to create index on LOWER("users"."username") in Rails (using postgres)

From Dev

How to create a new rails app with a particular version of rails?

From Dev

How to create a new rails app with a particular version of rails?

From Dev

Remote postgres database on Heroku app

From Dev

Remote postgres database on Heroku app

From Dev

Create a Postgres database using python

Related Related

  1. 1

    How to connect to MYSQL database manually with Rails?

  2. 2

    How to Manually Create a Migration File Rails 4

  3. 3

    On Heroku, how can I schedule the postgres database for my Rails app to be periodically reset?

  4. 4

    Postgres <=> Rails . How to auto-create a user from database.yml

  5. 5

    Couldn't create database for Rails app

  6. 6

    How to separate rails applications due to postgres database?

  7. 7

    How to create User/Database in script for Docker Postgres

  8. 8

    how to create backup of postgres database using java

  9. 9

    Rails 4.1.1 Postgres app with Mysql Legacy database Import

  10. 10

    Heroku Deployment Error for Rails app using "postgres" Database

  11. 11

    Rails 4.1.1 Postgres app with Mysql Legacy database Import

  12. 12

    How to properly automatically/manually rotate log files for production Rails App

  13. 13

    Search too slow. How do I reindex postgres database in a rails app using pg_search gem?

  14. 14

    How to create mipmap manually?

  15. 15

    When rails app create database and collection when using MongoDb?

  16. 16

    How to set up Postgres database for local Rails project?

  17. 17

    How to create a "guided tour" in Rails app?

  18. 18

    Postgres on Docker. How can I create a database and a user?

  19. 19

    How to create or manage heroku_postgres database instance

  20. 20

    How to create or manage heroku_postgres database instance

  21. 21

    Postgres - How to use psql to create a database with the -c command and password authentication?

  22. 22

    How does official Postgres image create user and database with env variables?

  23. 23

    How do I use postgres in a Rails app template?

  24. 24

    How to create index on LOWER("users"."username") in Rails (using postgres)

  25. 25

    How to create a new rails app with a particular version of rails?

  26. 26

    How to create a new rails app with a particular version of rails?

  27. 27

    Remote postgres database on Heroku app

  28. 28

    Remote postgres database on Heroku app

  29. 29

    Create a Postgres database using python

HotTag

Archive