Created
January 16, 2020 11:06
-
-
Save KingofHamyang/a913467d99c117f06aa1ec636b878881 to your computer and use it in GitHub Desktop.
Notification Migration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NotificationSubscription.find_each do | ns | | |
LmsSubscription.create!(resource_id: ns.resource_id, resource_type: ns.resource_type, owner_id: ns.owner_id, owner_type: ns.owner_type, last_sent_at: ns.last_sent_at) if ns.subs_type == "lms" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment