Removed local_census_record association in User

This commit is contained in:
María Checa
2017-07-14 15:35:11 +02:00
parent 77b8d93893
commit 6a24288bed

View File

@@ -32,7 +32,6 @@ class User < ActiveRecord::Base
has_many :direct_messages_received, class_name: 'DirectMessage', foreign_key: :receiver_id
has_many :legislation_answers, class_name: 'Legislation::Answer', dependent: :destroy, inverse_of: :user
belongs_to :geozone
belongs_to :local_census_record
validates :username, presence: true, if: :username_required?
validates :username, uniqueness: { scope: :registering_with_oauth }, if: :username_required?