aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/db/system/change/change_command.rb
blob: 760c229c0753fe8db0bef822b891976790147930 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

require "rails/generators"
require "rails/generators/rails/db/system/change/change_generator"

module Rails
  module Command
    module Db
      module System
        class ChangeCommand < Base # :nodoc:
          class_option :to, desc: "The database system to switch to."

          def perform
            Rails::Generators::Db::System::ChangeGenerator.start
          end
        end
      end
    end
  end
end