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