mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-14 02:44:13 +00:00
15 lines
400 B
Ruby
15 lines
400 B
Ruby
class CreateLoginActivities < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :login_activities do |t|
|
|
t.belongs_to :user, null: false, foreign_key: { on_delete: :cascade }
|
|
t.string :authentication_method
|
|
t.string :provider
|
|
t.boolean :success
|
|
t.string :failure_reason
|
|
t.inet :ip
|
|
t.string :user_agent
|
|
t.datetime :created_at
|
|
end
|
|
end
|
|
end
|