blob: a513fa5cbfa5c64640ab5b83762c40da1103cbd5 (
plain) (
tree)
|
|
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
|