about summary refs log tree commit diff
path: root/app/models/imported_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/imported_status.rb')
-rw-r--r--app/models/imported_status.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/app/models/imported_status.rb b/app/models/imported_status.rb
new file mode 100644
index 000000000..038301f3e
--- /dev/null
+++ b/app/models/imported_status.rb
@@ -0,0 +1,13 @@
+# == Schema Information
+#
+# Table name: imported_statuses
+#
+#  id        :bigint(8)        not null, primary key
+#  status_id :bigint(8)
+#  origin    :string
+#
+
+class ImportedStatus < ApplicationRecord
+  belongs_to :status, inverse_of: :imported_status
+  validates_uniqueness_of :status_id
+end