Sha256: d0cebfac340fdb2fede365b1a11c80233ac41df4f7e62e382adf07491481626d

Contents?: true

Size: 321 Bytes

Versions: 3

Compression:

Stored size: 321 Bytes

Contents

class CreateLoginAttempts < ActiveRecord::Migration
  def change
    create_table :casino_login_attempts do |t|
      t.integer :user_id, null: true
      t.string :username, null: false
      t.boolean :successful, default: false

      t.string  :user_ip
      t.text  :user_agent

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
casino-4.1.2 db/migrate/20160502074450_create_login_attempts.rb
casino-4.1.1 db/migrate/20160502074450_create_login_attempts.rb
casino-4.1.0 db/migrate/20160502074450_create_login_attempts.rb