13 lines
280 B
Ruby
13 lines
280 B
Ruby
class CreateEvents < ActiveRecord::Migration[8.1]
|
|
def change
|
|
create_table :events do |t|
|
|
t.references :user, null: false, foreign_key: true
|
|
t.string :action, null: false
|
|
t.string :user_agent
|
|
t.string :ip_address
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|