mirror of
https://github.com/discourse/discourse.git
synced 2026-07-30 08:08:20 -05:00
FEATURE: Add views to UserProfile.
This commit is contained in:
@@ -112,6 +112,7 @@ end
|
||||
# badge_granted_title :boolean default(FALSE)
|
||||
# card_background :string(255)
|
||||
# card_image_badge_id :integer
|
||||
# views :integer default(0), not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddViewsToUserProfile < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :user_profiles, :views, :integer, default: 0, null: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user