spec/dummy/db/schema.rb in gamification-0.0.2 vs spec/dummy/db/schema.rb in gamification-1.0.0
- old
+ new
@@ -9,36 +9,49 @@
# from scratch. The latter is a flawed and unsustainable approach (the more migrations
# you'll amass, the slower it'll run and the greater likelihood for issues).
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20140309200453) do
+ActiveRecord::Schema.define(version: 20140318220723) do
create_table "articles", force: true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end
- create_table "gamification_scorings", force: true do |t|
- t.integer "task_id"
- t.integer "subjectable_id"
- t.string "subjectable_type"
+ create_table "gamification_goals", force: true do |t|
+ t.integer "rewarding_id"
+ t.string "rewarding_type"
+ t.integer "points"
t.datetime "created_at"
t.datetime "updated_at"
end
- add_index "gamification_scorings", ["subjectable_id", "subjectable_type"], name: "index_gamification_scorings_on_subjectable"
- add_index "gamification_scorings", ["task_id"], name: "index_gamification_scorings_on_task_id"
+ add_index "gamification_goals", ["rewarding_id", "rewarding_type"], name: "index_gamification_goals_on_rewarding_id_and_rewarding_type"
- create_table "gamification_tasks", force: true do |t|
- t.integer "taskable_id"
- t.string "taskable_type"
- t.integer "points"
+ create_table "gamification_medals", force: true do |t|
+ t.integer "goal_id"
+ t.string "name"
+ t.string "image"
t.datetime "created_at"
t.datetime "updated_at"
+ t.text "description"
end
- add_index "gamification_tasks", ["taskable_id", "taskable_type"], name: "index_gamification_tasks_on_taskable_id_and_taskable_type"
+ add_index "gamification_medals", ["goal_id"], name: "index_gamification_medals_on_goal_id"
+
+ create_table "gamification_rewards", force: true do |t|
+ t.integer "goal_id"
+ t.integer "rewardable_id"
+ t.string "rewardable_type"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.datetime "seen_at"
+ end
+
+ add_index "gamification_rewards", ["goal_id"], name: "index_gamification_rewards_on_goal_id"
+ add_index "gamification_rewards", ["rewardable_id", "rewardable_type"], name: "index_gamification_scorings_on_subjectable"
+ add_index "gamification_rewards", ["seen_at"], name: "index_gamification_rewards_on_seen_at"
create_table "users", force: true do |t|
t.datetime "created_at"
t.datetime "updated_at"
end