Skip to content

Commit

Permalink
Merge branch 'release/0.15.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Mar 20, 2017
2 parents 474489f + 1a90230 commit ba83d11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class User < ActiveRecord::Base
has_many :comments, dependent: :destroy
has_and_belongs_to_many :teams
has_many :merits, class_name: 'ActivityLines::Corporative::Merit'
has_many :ya_lider_participations, class_name: 'ActivityLines::Lider::YaLider::Participation'
has_many :ya_lider_participants, class_name: 'ActivityLines::Lider::YaLider::Participant'

validates :email, email: true,
allow_blank: true
Expand Down
2 changes: 1 addition & 1 deletion bin/data_fixes/user_to_member_fix.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
user = User.find ENV['USER_ID']
member = Member.find ENV['MEMBER_ID']
puts "Updating associations...".green
[:authentications, :article, :registrations, :logged_actions, :comments, :ya_lider_participations].each do |association|
[:authentications, :article, :registrations, :logged_actions, :comments, :ya_lider_participants].each do |association|
user.send(association).each do |obj|
obj.update_attributes! user_id: member.id
end
Expand Down

0 comments on commit ba83d11

Please sign in to comment.