Sha256: 68e7991f17bf9203e919f156f623c25524475e76a78bcae1a80df6e95433fdca

Contents?: true

Size: 387 Bytes

Versions: 2

Compression:

Stored size: 387 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :sessions do |t|
      t.references :user, null: false, foreign_key: true
      t.string :user_agent
      t.string :ip_address
      <%- if sudoable? %>
      t.datetime :sudo_at, null: false
      <%- end -%>

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentication-zero-4.0.3 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-4.0.2 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt