🔹 General Rails Project Setup Questions
-
What does the command
rails new neo_appdo?-
Creates a new Rails application named
neo_appwith a default folder structure, Gemfile, and configuration files.
-
-
What is the difference between
rails new appnameandrails new .?-
rails new appnamecreates a new folder. -
rails new .initializes a Rails project in the current directory.
-
-
What is the purpose of the
Gemfilegenerated by Rails?-
Defines Ruby gems required for the project.
-
Managed via
bundle install.
-
🔹 Database Option (-d postgresql)
-
What does
-d postgresqlmean inrails new?-
Configures Rails to use PostgreSQL as the database instead of default SQLite.
-
-
How do you configure database credentials in Rails?
-
Inside
config/database.ymlusing environment variables (or Rails credentials).
-
-
How do you create the database after setup?
-
rails db:create
-
-
What are the advantages of PostgreSQL over SQLite in Rails?
-
Better performance for large apps.
-
Supports advanced features (JSONB, full-text search).
-
Suitable for production.
-
Comments
Post a Comment