Skip to content

Instantly share code, notes, and snippets.

@traumverloren
Last active April 29, 2020 12:13
Show Gist options
  • Save traumverloren/c9e81a0dfc9b8a2c9970887835aef64d to your computer and use it in GitHub Desktop.
Save traumverloren/c9e81a0dfc9b8a2c9970887835aef64d to your computer and use it in GitHub Desktop.
Rails notes

Setup ruby on rails:

https://gorails.com/setup/osx/10.15-catalina

Running Postgresql

To migrate existing data from a previous major version of PostgreSQL run: brew postgresql-upgrade-database

To have launchd start postgresql now and restart at login: brew services start postgresql

Or, if you don't want/need a background service you can just run: pg_ctl -D /usr/local/var/postgres start

  • Start: pg_ctl -D /usr/local/var/postgres start
  • Stop: pg_ctl -D /usr/local/var/postgres stop

Rails Console for test enviro:

$ rails c test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment