The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

21 lines
391 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: conversations
  5. #
  6. # id :integer not null, primary key
  7. # uri :string
  8. # created_at :datetime not null
  9. # updated_at :datetime not null
  10. #
  11. class Conversation < ApplicationRecord
  12. validates :uri, uniqueness: true, if: :uri?
  13. has_many :statuses
  14. def local?
  15. uri.nil?
  16. end
  17. end