Sha256: dae566fc6738dadf19e17b880aa5e91a8a07708b54cbd67ab20aab82512bfa1d

Contents?: true

Size: 366 Bytes

Versions: 3

Compression:

Stored size: 366 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

3 entries across 3 versions & 1 rubygems

Version Path
authentication-zero-2.3.2 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.3.1 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.3.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt