FEATURE: Two new badges - First Emoji and First Mention

This commit is contained in:
Robin Ward
2016-04-05 15:12:02 -04:00
parent 56e47c8d7e
commit c30d327b77
9 changed files with 380 additions and 255 deletions

View 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