Initial badge system implementation.

This commit is contained in:
Vikhyat Korrapati
2014-03-05 18:22:20 +05:30
parent 9eb3958374
commit 9b26c8584e
41 changed files with 1186 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
class CreateBadges < ActiveRecord::Migration
def change
create_table :badges do |t|
t.string :name, null: false
t.text :description
t.integer :badge_type_id, index: true, null: false
t.integer :grant_count, null: false, default: 0
t.timestamps
end
add_index :badges, [:name], unique: true
end
end