~cytrogen/masto-fe

ref: 4ea24537cf9c1fafd0edf79acd8cf666be662fbe masto-fe/db/migrate/20210609202149_create_login_activities.rb -rw-r--r-- 400 bytes
4ea24537 — dependabot[bot] Bump rubocop-performance from 1.17.1 to 1.18.0 (#25089) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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