Sha256: 88f436e2a5019cad86a43565ebdff0607241470a906095d7ff592de39d712915

Contents?: true

Size: 302 Bytes

Versions: 9

Compression:

Stored size: 302 Bytes

Contents

class SessionMigrationGenerator < Rails::Generator::NamedBase
  def initialize(runtime_args, runtime_options = {})
    runtime_args << 'add_session_table' if runtime_args.empty?
    super
  end

  def manifest
    record do |m|
      m.migration_template 'migration.rb', 'db/migrate'
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails-0.14.4 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.0.0 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.1 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.0 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.4 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.6 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.2 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.5 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
rails-1.1.3 lib/rails_generator/generators/components/session_migration/session_migration_generator.rb