f40d96fbd2
This reverts commit d9a588b52e
.
6 lines
199 B
Ruby
6 lines
199 B
Ruby
class AddKeyToArchives < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :archives, :key, :text, null: false
|
|
add_index :archives, [:key, :time_span_type, :month], unique: true
|
|
end
|
|
end
|