Sha256: 8592b56df2c39b34944473583c10a29eb2d6685a208b326a3f4e877f212f0d0e

Contents?: true

Size: 372 Bytes

Versions: 20

Compression:

Stored size: 372 Bytes

Contents

# Used by the active sessions feature
create_table :account_active_session_keys, primary_key: [:account_id, :session_id] do |t|
  t.references :account, foreign_key: true<%= primary_key_type(:type) %>
  t.string :session_id
  t.datetime :created_at, null: false, default: <%= current_timestamp %>
  t.datetime :last_use, null: false, default: <%= current_timestamp %>
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rodauth-rails-1.7.1 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.7.0 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.6.4 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.6.3 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.6.2 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.6.1 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.6.0 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.5.5 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.5.4 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.5.2 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.5.1 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.5.0 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.4.2 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.4.1 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.4.0 lib/generators/rodauth/migration/active_record/active_sessions.erb
rodauth-rails-1.3.1 lib/generators/rodauth/migration/active_sessions.erb
rodauth-rails-1.3.0 lib/generators/rodauth/migration/active_sessions.erb
rodauth-rails-1.2.2 lib/generators/rodauth/migration/active_sessions.erb
rodauth-rails-1.2.1 lib/generators/rodauth/migration/active_sessions.erb
rodauth-rails-1.2.0 lib/generators/rodauth/migration/active_sessions.erb