-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Library types can be inactive, have external_identifiers
https://github.com/sanger/traction-service/issues/730 also makes some requirements wrt library_type.
- Loading branch information
James Glover
committed
Jun 10, 2022
1 parent
06c0348
commit a8f0c94
Showing
5 changed files
with
25 additions
and
1 deletion.
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
10 changes: 10 additions & 0 deletions
10
db/migrate/20220610122339_add_application_active_to_library_type.rb
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# frozen_string_literal: true | ||
|
||
# Reminded of | ||
# https://github.com/sanger/traction-service/issues/730 | ||
class AddApplicationActiveToLibraryType < ActiveRecord::Migration[7.0] | ||
def change | ||
add_column :library_types, :external_identifier, :string | ||
add_column :library_types, :active, :boolean, default: 1, null: false | ||
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
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