based on DigitalOcean guide
Create local project
local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
# Add this function to your `.bash_profile` | |
function open_pr() { | |
repo_name="${PWD##*/}" | |
ref=$(git symbolic-ref HEAD 2> /dev/null) | |
git_branch="${ref#refs/heads/}" | |
open "https://github.com/youse-seguradora/${repo_name}/compare/master...${git_branch}" | |
} |
based on DigitalOcean guide
Create local project
local$ rails new appname -T -d postgresql
local$ rails g scaffold Story title:string body:text
local$ rails db:migrate
Picking the right architecture = Picking the right battles + Managing trade-offs