7 lines
199 B
Ruby
7 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
|