Skip to content

Instantly share code, notes, and snippets.

@kronosapiens
Created March 6, 2014 22:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kronosapiens/9401590 to your computer and use it in GitHub Desktop.
Save kronosapiens/9401590 to your computer and use it in GitHub Desktop.
Seeds for NYC App
bqe = Landmark.create(name: 'BQE', year_completed: 1961)
sol = Landmark.create(name: 'Statue of Liberty', year_completed: 1886)
esb = Landmark.create(name: 'Empire State Building', year_completed: 1929)
mos = Figure.create(name: 'Bobby Moses')
fdr = Figure.create(name: 'FDR')
pc = Title.create(name: 'Parks Commissioner')
president = Title.create(name: 'President')
hero = Title.create(name: 'Hero')
sol.figure = fdr
esb.figure = mos
bqe.figure = mos
mos.titles << pc
mos.titles << hero
fdr.titles << president
fdr.titles << hero
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment