Skip to content

Commit

Permalink
Merge together multiple annotation-related migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Oct 22, 2023
1 parent 4296e62 commit 526bc08
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 24 deletions.
2 changes: 2 additions & 0 deletions db/migrate/20221015114100_create_annotations.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def change
t.integer :category
t.boolean :visible_for_teacher
t.string :color
t.integer :public_comment_id
t.integer :subcategory

t.timestamps
end
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddAnnotationsStatusToMedium < ActiveRecord::Migration[7.0]
def change
add_column :media, :annotations_status, :integer
add_column :media, :annotations_status, :integer, default: 0
end
end
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class AddAnnotationsStatusToLecture < ActiveRecord::Migration[7.0]
def change
add_column :lectures, :annotations_status, :integer
add_column :lectures, :annotations_status, :integer, default: -1
end
end

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20231001065026_remove_subtext_from_annotation.rb

This file was deleted.

5 changes: 0 additions & 5 deletions db/migrate/20231001065435_add_subcategory_to_annotation.rb

This file was deleted.

This file was deleted.

0 comments on commit 526bc08

Please sign in to comment.