about summary refs log tree commit diff
path: root/app/models/status_pin.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/status_pin.rb')
-rw-r--r--app/models/status_pin.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/status_pin.rb b/app/models/status_pin.rb
new file mode 100644
index 000000000..c9a669344
--- /dev/null
+++ b/app/models/status_pin.rb
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+# == Schema Information
+#
+# Table name: status_pins
+#
+#  id         :integer          not null, primary key
+#  account_id :integer          not null
+#  status_id  :integer          not null
+#
+
+class StatusPin < ApplicationRecord
+  belongs_to :account, required: true
+  belongs_to :status, required: true
+
+  validates_with StatusPinValidator
+end