mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:07:43 +08:00
FEATURE: Two new badges - First Emoji and First Mention
This commit is contained in:
12
db/migrate/20160405172827_create_user_firsts.rb
Normal file
12
db/migrate/20160405172827_create_user_firsts.rb
Normal file
@ -0,0 +1,12 @@
|
||||
class CreateUserFirsts < ActiveRecord::Migration
|
||||
def change
|
||||
create_table :user_firsts, force: true do |t|
|
||||
t.integer :user_id, null: false
|
||||
t.integer :first_type, null: false
|
||||
t.integer :post_id
|
||||
t.datetime :created_at, null: false
|
||||
end
|
||||
|
||||
add_index :user_firsts, [:user_id, :first_type], unique: true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user