Skip to content

Instantly share code, notes, and snippets.

@IvanDerlich
Created March 27, 2021 22:28
Show Gist options
  • Save IvanDerlich/a5a3973ec446cdac3cbef40520bf677c to your computer and use it in GitHub Desktop.
Save IvanDerlich/a5a3973ec446cdac3cbef40520bf677c to your computer and use it in GitHub Desktop.
Initializing Rails API command
$ rails new court-reservation --api -T --no-sprockets -d postgresql
--api -> No views and other config related with the default way of creating apps.
-T -> No test. This is useful for using Rspec.
--no-sprockets -> Something related with the asset pipeline of Rails.
-d postgresql -> Use postgresql database
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment