mirror of
https://github.com/discourse/discourse.git
synced 2025-03-24 06:42:37 +08:00
FEATURE: Add views to UserProfile.
This commit is contained in:
parent
d30f454261
commit
f41bcafe8d
@ -112,6 +112,7 @@ end
|
|||||||
# badge_granted_title :boolean default(FALSE)
|
# badge_granted_title :boolean default(FALSE)
|
||||||
# card_background :string(255)
|
# card_background :string(255)
|
||||||
# card_image_badge_id :integer
|
# card_image_badge_id :integer
|
||||||
|
# views :integer default(0), not null
|
||||||
#
|
#
|
||||||
# Indexes
|
# Indexes
|
||||||
#
|
#
|
||||||
|
5
db/migrate/20150914034541_add_views_to_user_profile.rb
Normal file
5
db/migrate/20150914034541_add_views_to_user_profile.rb
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
class AddViewsToUserProfile < ActiveRecord::Migration
|
||||||
|
def change
|
||||||
|
add_column :user_profiles, :views, :integer, default: 0, null: false
|
||||||
|
end
|
||||||
|
end
|
Loading…
x
Reference in New Issue
Block a user