Sha256: 6785d316e40856fe1119a7afd4a2e577df0811a9df5487386b5ecae78e9bf896
Contents?: true
Size: 699 Bytes
Versions: 40
Compression:
Stored size: 699 Bytes
Contents
# 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 initialize(positional_args, option_args, *) @argv = positional_args + option_args super end desc "change", "Change `config/database.yml` and your database gem to the target database" def perform(*) Rails::Generators::Db::System::ChangeGenerator.start(@argv) end end end end end end
Version data entries
40 entries across 40 versions & 5 rubygems