demarches-normaliennes/db/migrate/20211026131800_create_merge_logs.rb
simon lehericey 7935e42109 Add merge log
2021-10-28 14:39:13 +02:00

11 lines
284 B
Ruby

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