Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class License < ApplicationRecord
- has_one :license_type
- before_create :set_expired_at
- private
- def set_expired_at
- self.expired_at = Time.zone.now
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement