Flowdock
method

session_table_name

Importance_0
Ruby on Rails latest stable (v6.1.7.7) - 0 notes - Class: ActiveRecord::Generators::SessionMigrationGenerator

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.2.13) is shown here.

session_table_name() protected

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/rails/generators/active_record/session_migration/session_migration_generator.rb, line 15
        def session_table_name
          current_table_name = ActiveRecord::SessionStore::Session.table_name
          if current_table_name.in?(["sessions", "session"])
            current_table_name = (ActiveRecord::Base.pluralize_table_names ? 'session'.pluralize : 'session')
          end
          current_table_name
        end
Register or log in to add new notes.