-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge together multiple annotation-related migrations
- Loading branch information
Showing
7 changed files
with
4 additions
and
24 deletions.
There are no files selected for viewing
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
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
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 |
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
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 |
6 changes: 0 additions & 6 deletions
6
db/migrate/20230523062844_add_public_comment_id_and_subtext_to_annotation.rb
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
db/migrate/20231021100348_change_annotations_status_default_in_media_and_lectures.rb
This file was deleted.
Oops, something went wrong.