Posts

Showing posts from September, 2025
🔹 General Rails Project Setup Questions What does the command rails new neo_app do? Creates a new Rails application named neo_app with a default folder structure, Gemfile, and configuration files. What is the difference between rails new appname and rails new . ? rails new appname creates a new folder. rails new . initializes a Rails project in the current directory. What is the purpose of the Gemfile generated by Rails? Defines Ruby gems required for the project. Managed via bundle install . 🔹 Database Option ( -d postgresql ) What does -d postgresql mean in rails new ? Configures Rails to use PostgreSQL as the database instead of default SQLite. How do you configure database credentials in Rails? Inside config/database.yml using 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 ...