method

new

Method not available on this version

This method is only available on newer versions. The first available version (v7.2.3) is shown here.

new()
public

No documentation available.

# File activerecord/lib/active_record/migration.rb, line 200
    def initialize
      msg = "Environment data not found in the schema. To resolve this issue, run: \n\n        bin/rails db:environment:set"
      if defined?(Rails.env)
        super("#{msg} RAILS_ENV=#{::Rails.env}")
      else
        super(msg)
      end
    end