<commit_before># frozen_string_literal: true
class FinancialTransaction < ActiveRecord::Base
  belongs_to :rental
  belongs_to :transactable, polymorphic: true

  validates :rental_id, presence: true
  validates :amount, presence: true
  validates :adjustment, presence: true
end<commit_msg>simplify fin trans validations<commit_after># frozen_string_literal: true
class FinancialTransaction < ActiveRecord::Base
  belongs_to :rental
  belongs_to :transactable, polymorphic: true

  validates :adjustment, :rental_id, :amount, presence: true
end
{'fraction_non_alphanumeric': 0.07339449541284404, 'fraction_numerical': 0.0, 'mean_word_length': 7.2727272727272725, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7372634', 'n_tokens_mistral': 165, 'n_tokens_neox': 159, 'n_words': 46}