ActiveRecord validator for IBAN codes using this project to do the actual validation: https://github.com/iulianu/iban-tools
This project rocks and uses MIT-LICENSE.
Add to your Gemfile and bundle:
gem "validates_iban"
class Account < ApplicationRecord
validates :iban_string, iban: true
end