aboutsummaryrefslogblamecommitdiffstats
path: root/railties/lib/rails_generator/generators/components/session_migration/session_migration_generator.rb
blob: a513fa5cbfa5c64640ab5b83762c40da1103cbd5 (plain) (tree)
1
2
3
4
5
6
7
8







                                                              



                                                       
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