Sha256: 30ebfcf5e0526becbd60085fa865b6cad702f589410a2481b28e46ffebc288c4

Contents?: true

Size: 367 Bytes

Versions: 5

Compression:

Stored size: 367 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
  def change
    create_table :sessions do |t|
      t.references :<%= singular_table_name %>, null: false, foreign_key: true

      t.string :user_agent
      t.string :ip_address

      t.datetime :sudo_at, null: false

      t.timestamps
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authentication-zero-2.10.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.9.3 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.9.2 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.9.1 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.9.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt