Sha256: 69bc6689f2b61d0b53c7c7d32cb54c39e35b8d66148cfcfae8184bf6cca876ae

Contents?: true

Size: 408 Bytes

Versions: 1

Compression:

Stored size: 408 Bytes

Contents

# Used by the active sessions feature
create_table :<%= table_prefix %>_active_session_keys, primary_key: [:<%= table_prefix %>_id, :session_id] do |t|
  t.references :<%= table_prefix %>, 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

1 entries across 1 versions & 1 rubygems

Version Path
rodauth-rails-1.8.0 lib/generators/rodauth/migration/active_record/active_sessions.erb