Rename language_code to code - language_code is tautological when it's
[rails.git] / app / models / language.rb
1 class Language < ActiveRecord::Base
2   set_primary_key :code
3
4   has_many :users, :foreign_key => 'locale'
5   has_many :diary_entries, :foreign_key => 'language'
6 end