Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ApplicationRecord < ActiveRecord::Base
- self.abstract_class = true
- default_scope { order(:created_at) }
- before_create -> { self.id = SecureRandom.uuid }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement