Define encrypted ActiveRecord methods inside a module, so we can use super

You can then, for example, migrate to encrypted records when they
change.

class User < ActiveRecord::Base
  attr_encrypted :bank_account_number
  def bank_account_number
     super || retrieve_clear_bank_account_number_from_old_column
  end
end