forked from mirrors/catstodon
Revert "add emoji reaction database model"
I didn't intend to commit this to main and it's
kind of a work in progress anyway.
This reverts commit 0da3340f0d
.
main
parent
0da3340f0d
commit
416d42e949
@ -1,16 +0,0 @@
|
||||
# frozen_string_literal: true
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: emoji_reactions
|
||||
#
|
||||
# id :bigint(8) not null, primary key
|
||||
# emoji :string
|
||||
# status_id :bigint(8) not null
|
||||
# account_id :bigint(8) not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
#
|
||||
class EmojiReaction < ApplicationRecord
|
||||
belongs_to :status
|
||||
belongs_to :account
|
||||
end
|
@ -1,11 +0,0 @@
|
||||
class CreateEmojiReactions < ActiveRecord::Migration[6.1]
|
||||
def change
|
||||
create_table :emoji_reactions do |t|
|
||||
t.string :emoji
|
||||
t.references :status, null: false, foreign_key: true
|
||||
t.references :account, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
@ -1,5 +0,0 @@
|
||||
Fabricator(:emoji_reaction) do
|
||||
emoji "MyString"
|
||||
status nil
|
||||
account nil
|
||||
end
|
@ -1,5 +0,0 @@
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe EmojiReaction, type: :model do
|
||||
pending "add some examples to (or delete) #{__FILE__}"
|
||||
end
|
Loading…
Reference in New Issue