@ -0,0 +1,6 @@
|
||||
class AddIndexToStudentWorksScores < ActiveRecord::Migration
|
||||
def change
|
||||
add_index :student_works_scores, :user_id, name: 'user_id'
|
||||
add_index :student_works_scores, :student_work_id, name: 'student_work_id'
|
||||
end
|
||||
end
|
@ -0,0 +1,9 @@
|
||||
class UpdateUserExtensions < ActiveRecord::Migration
|
||||
def up
|
||||
ues = UserExtensions.where(:school_id => 0)
|
||||
ues.update_all(:school_id => nil)
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
@ -0,0 +1,13 @@
|
||||
class UpdateIssueAuthor < ActiveRecord::Migration
|
||||
def up
|
||||
begin
|
||||
issue = Issue.find(9377)
|
||||
issue.update_column(:author_id, 15341)
|
||||
rescue Exception => e
|
||||
puts e
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
@ -0,0 +1,13 @@
|
||||
class UpdateAttachPublicForMessage < ActiveRecord::Migration
|
||||
def up
|
||||
begin
|
||||
attachments = Attachment.where(:container_type => "Message", :is_public => 0)
|
||||
attachments.update_all(:is_public => 1)
|
||||
rescue Exception => e
|
||||
puts e
|
||||
end
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
After Width: | Height: | Size: 6.2 KiB |
After Width: | Height: | Size: 651 B |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 19 KiB |