Files

Class/Module Index [+]

Quicksearch

ActiveRecord::Generators::SessionMigrationGenerator

Public Instance Methods

create_migration_file() click to toggle source
# File lib/rails/generators/active_record/session_migration/session_migration_generator.rb, line 8
def create_migration_file
  migration_template "migration.rb", "db/migrate/#{file_name}.rb"
end

Protected Instance Methods

session_table_name() click to toggle source
# File lib/rails/generators/active_record/session_migration/session_migration_generator.rb, line 14
def session_table_name
  current_table_name = ActiveRecord::SessionStore::Session.table_name
  if ["sessions", "session"].include?(current_table_name)
    current_table_name = (ActiveRecord::Base.pluralize_table_names ? 'session'.pluralize : 'session')
  end
  current_table_name
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.