Initial commit

This commit is contained in:
Senad Uka
2020-05-31 22:38:19 +02:00
commit 858fafc3c5
1280 changed files with 65918 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
class AssignZoomMeetingsToProjects < ActiveRecord::DataMigration
def up
ZoomMeeting.find_each do |zm|
if zm.respond_to?(:broadcast_id) && zm.broadcast_id.present?
broadcast = Broadcast.find_by(id: zm.broadcast_id)
if broadcast.present?
zm.update_column(:project_id, broadcast.project_id)
end
end
end
end
def down
ZoomMeeting.update_all(project_id: nil)
end
end