demarches-normaliennes/db/migrate/20211026131800_create_merge_logs.rb
2024-08-22 09:26:48 +02:00

13 lines
315 B
Ruby

# frozen_string_literal: true
class CreateMergeLogs < ActiveRecord::Migration[6.1]
def change
create_table :merge_logs do |t|
t.bigint :from_user_id, null: false
t.string :from_user_email, null: false
t.references :user, null: false, foreign_key: true
t.timestamps
end
end
end