method

new

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ChangeGenerator
new(*) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.