15 lines
348 B
Ruby
15 lines
348 B
Ruby
class DeleteCourseActivities < ActiveRecord::Migration
|
|
def up
|
|
course_acts = CourseActivity.where(:course_id => 844, :user_id => 10096, :course_act_id => 436, :course_act_type => 'Poll')
|
|
|
|
if course_acts.count > 1
|
|
course_acts.limit(course_acts.count - 1).each do |act|
|
|
act.delete
|
|
end
|
|
end
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|