Skip to content

Instantly share code, notes, and snippets.

@jamesgecko
Created February 29, 2012 16:40
Show Gist options
  • Select an option

  • Save jamesgecko/1942320 to your computer and use it in GitHub Desktop.

Select an option

Save jamesgecko/1942320 to your computer and use it in GitHub Desktop.
# app/models/phone.rb
class Phone < ActiveRecord::Base
# t.integer "customer_id"
# t.integer "number"
# t.integer "number_type"
belongs_to :customer
Number_type_choices = {0 => 'Home', 1 => 'Work', 2 => 'Cell'}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment