Skip to content

Instantly share code, notes, and snippets.

@pzaich
Created August 8, 2012 06:49
Show Gist options
  • Select an option

  • Save pzaich/3292886 to your computer and use it in GitHub Desktop.

Select an option

Save pzaich/3292886 to your computer and use it in GitHub Desktop.
one-to-one-relationship
create_table "locations", :force => true do |t|
t.integer "shelf_life_id"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
t.string "name"
end
create_table "shelf_lives", :force => true do |t|
t.integer "item_kind_id"
t.integer "duration"
t.datetime "created_at", :null => false
t.datetime "updated_at", :null => false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment