mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-08 08:27:44 +08:00
7 lines
220 B
Ruby
7 lines
220 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddCodeIndexToExperiments < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_index :experiments, "('EX' || id)", name: 'index_experiments_on_experiment_code', unique: true
|
|
end
|
|
end
|