Skip to content

Commit

Permalink
DEV: Fix deprecations for Rails 7.2+
Browse files Browse the repository at this point in the history
  • Loading branch information
Flink committed Nov 7, 2024
1 parent 4c70d3a commit 66eb089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/discourse_reactions/reaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/discourse_reactions/reaction_user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 66eb089

Please sign in to comment.