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