diff --git a/app/models/discourse_reactions/reaction.rb b/app/models/discourse_reactions/reaction.rb index b24ce16..ebe8190 100644 --- a/app/models/discourse_reactions/reaction.rb +++ b/app/models/discourse_reactions/reaction.rb @@ -4,7 +4,7 @@ module DiscourseReactions class Reaction < ActiveRecord::Base self.table_name = "discourse_reactions_reactions" - enum reaction_type: { emoji: 0 } + enum :reaction_type, { emoji: 0 } has_many :reaction_users, class_name: "DiscourseReactions::ReactionUser" has_many :users, through: :reaction_users diff --git a/app/models/discourse_reactions/reaction_user.rb b/app/models/discourse_reactions/reaction_user.rb index d0e6cf5..9bea7b0 100644 --- a/app/models/discourse_reactions/reaction_user.rb +++ b/app/models/discourse_reactions/reaction_user.rb @@ -56,7 +56,7 @@ def reload # Table name: discourse_reactions_reaction_users # # id :bigint not null, primary key -# reaction_id :integer +# reaction_id :bigint # user_id :integer # created_at :datetime not null # updated_at :datetime not null