Skip to content

Commit

Permalink
feat[rsdb]: add is_reference flag attribute to spectra
Browse files Browse the repository at this point in the history
  • Loading branch information
puglet5 committed Nov 10, 2023
1 parent 3ba33b0 commit 559c18c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

# rubocop:disable Rails/ThreeStateBooleanColumn
class AddReferenceFlagToSpectra < ActiveRecord::Migration[7.0]
def change
add_column :spectra, :is_reference, :boolean, null: true, default: false
end
end
# rubocop:enable Rails/ThreeStateBooleanColumn
3 changes: 2 additions & 1 deletion db/rsdb_schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2023_06_29_070038) do
ActiveRecord::Schema[7.0].define(version: 2023_11_10_163506) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down Expand Up @@ -54,6 +54,7 @@
t.text "plain_text_description"
t.text "plain_text_equipment"
t.string "task_id"
t.boolean "is_reference", default: false
t.index ["metadata"], name: "index_spectra_on_metadata", using: :gin
t.index ["sample_id"], name: "index_spectra_on_sample_id"
t.index ["user_id"], name: "index_spectra_on_user_id"
Expand Down

0 comments on commit 559c18c

Please sign in to comment.