Files

Class 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
 8:       def create_migration_file
 9:         migration_template "migration.rb", "db/migrate/#{file_name}.rb"
10:       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
14:         def session_table_name
15:           current_table_name = ActiveRecord::SessionStore::Session.table_name
16:           if ["sessions", "session"].include?(current_table_name)
17:             current_table_name = (ActiveRecord::Base.pluralize_table_names ? 'session'.pluralize : 'session')
18:           end
19:           current_table_name
20:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.