eBooru/db/migrate/20230506161827_add_ticket_user_id.rb
Earlopain fc7d84affd
[RuboCop] Enable Style/FrozenStringLiteralComment
This reduces allocations on the posts page by about 5%, from basic testing
2024-02-25 18:15:55 +01:00

9 lines
212 B
Ruby

# frozen_string_literal: true
class AddTicketUserId < ActiveRecord::Migration[7.0]
def change
add_column :tickets, :accused_id, :integer
add_foreign_key :tickets, :users, column: :accused_id
end
end