Sha256: fd934b3e5412dbdd0b31f4d7ee8229ae2034e88be113f00cc689bc187f021103

Contents?: true

Size: 216 Bytes

Versions: 16

Compression:

Stored size: 216 Bytes

Contents

class PopulateDeletedAtInSocialNetworkingGoals < ActiveRecord::Migration
  def change
    SocialNetworking::Goal.all.each do |goal|
      goal.update(created_at: goal.deleted_at) if goal.is_deleted
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
social_networking-0.13.3 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.13.2 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.13.1 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.13.0 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.12.0 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.8 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.7 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.6 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.5 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.4 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.3 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.2 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.1 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.11.0 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.10.0 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb
social_networking-0.9.3 db/migrate/20150318133127_populate_deleted_at_in_social_networking_goals.rb