Sha256: 2c68c98783a3f64ae2c4b82d5eee94213e5aaf1f9e4b183dc5d3efc00e57f5e1

Contents?: true

Size: 326 Bytes

Versions: 12

Compression:

Stored size: 326 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.timestamps
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
authentication-zero-2.11.2 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.11.1 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.11.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.10 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.9 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.8 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.7 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.6 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.2.5 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.1.1 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.1.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt
authentication-zero-2.0.0 lib/generators/authentication/templates/migrations/create_sessions_migration.rb.tt