The code powering m.abunchtell.com https://m.abunchtell.com
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
391 B

  1. # frozen_string_literal: true
  2. # == Schema Information
  3. #
  4. # Table name: conversations
  5. #
  6. # id :bigint(8) 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