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 9
 9:       def create_migration_file
10:         migration_template "migration.rb", "db/migrate/#{file_name}.rb"
11:       end

Protected Instance Methods

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.