10 lines
346 B
Ruby
10 lines
346 B
Ruby
class AddTagsToProcedures < ActiveRecord::Migration[6.1]
|
|
disable_ddl_transaction!
|
|
def change
|
|
# we have a small number of procedure so it must go smoothly
|
|
safety_assured do
|
|
add_column :procedures, :tags, :text, array: true, default: []
|
|
add_index :procedures, :tags, using: 'gin', algorithm: :concurrently
|
|
end
|
|
end
|
|
end
|