1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 00:36:42 +01:00
projekteuler/db/migrate/20190204164033_add_author_to_translations.rb

5 lines
182 B
Ruby

class AddAuthorToTranslations < ActiveRecord::Migration[5.2]
def change
add_reference :translations, :author, index: true, null: true, foreign_key: {to_table: :users}
end
end