Skip to content

Instantly share code, notes, and snippets.

@tm72
Forked from tdm00/README.md
Created June 11, 2012 04:08
Show Gist options
  • Select an option

  • Save tm72/2908479 to your computer and use it in GitHub Desktop.

Select an option

Save tm72/2908479 to your computer and use it in GitHub Desktop.
Gist 1

class User < ActiveRecord::Base

# Define legacy table information
# self.table_name = "tblDoctor"
# self.primary_key = "DoctorID"
# alias_attribute :first_name, :DoctorFName
# alias_attribute :last_name, :DoctorLName
# alias_attribute :middle_name, :DoctorMName
# alias_attribute :suffix, :DoctorSuffix
# alias_attribute :title, :DoctorPrefix
# alias_attribute :hospital_id, :HospitalID
# alias_attribute :address1, :DoctorAddress1
# alias_attribute :address2, :DoctorAddress2
# alias_attribute :address3, :DoctorAddress3
# alias_attribute :city, :DoctorCity
# alias_attribute :state_id, :DoctorState
# alias_attribute :zip_code, :DoctorZip
# alias_attribute :office_phone, :DoctorPhone
# alias_attribute :office_fax, :DoctorFax
# alias_attribute :note, :DoctorNotes

end

@tm72
Copy link
Copy Markdown
Author

tm72 commented Jun 11, 2012

blah blah blah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment