Skip to content

Instantly share code, notes, and snippets.

View khata-jp's full-sized avatar

khata-jp

View GitHub Profile
export PS1="\[\e[1;32m\]\u@\h:\[\e[1;34m\]$(__git_ps1 "(%s)")\W\[\e[0;37m\]\$ "
class Sire < ApplicationRecord
belongs_to :horse
accepts_nested_attributes_for :horse
default_scope { joins(:horse).select('*') }
end