mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 18:29:52 +01:00
8 lines
206 B
Ruby
8 lines
206 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddPinnedAtToAnswers < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :answers, :pinned_at, :timestamp
|
|
add_index :answers, %i[user_id pinned_at]
|
|
end
|
|
end
|