method

new

rails latest stable - Class: Rails::Generators::Db::System::ChangeGenerator
new(*)
public

No documentation available.

# File railties/lib/rails/generators/rails/db/system/change/change_generator.rb, line 21
          def initialize(*)
            super

            unless DATABASES.include?(options[:to])
              raise Error, "Invalid value for --to option. Supported preconfigurations are: #{DATABASES.join(", ")}."
            end

            opt = options.dup
            opt[:database] ||= opt[:to]
            self.options = opt.freeze
          end