How do I check the Database type in a Rails Migration? July 31, 2023 by Tarik Even more shorter call ActiveRecord::Base.connection.adapter_name == 'MySQL'