diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-12-11 22:00:22 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-12-11 22:00:22 -0600 |
commit | dae7cda4abe135b3bb5fe9cfb3380721a2feb03e (patch) | |
tree | 4eda3ccfee17cb36a461d31cf74d266d80f6ebae /app/models/imported_status.rb | |
parent | 9a435494c2efdd2ca8fc7f5fa3dbb81bf88633a1 (diff) |
move sharekeys & import metadata to own tables
Diffstat (limited to 'app/models/imported_status.rb')
-rw-r--r-- | app/models/imported_status.rb | 13 |
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 |