Browse Source

Add division markers for future job

Maarten van den Berg 7 years ago
parent
commit
25b8611e21

+ 6 - 0
db/migrate/20171023080215_add_subgroup_job_markers_to_activities.rb

@@ -0,0 +1,6 @@
1
+class AddSubgroupJobMarkersToActivities < ActiveRecord::Migration[5.0]
2
+  def change
3
+    add_column :activities, :subgroup_division_enabled, :boolean
4
+    add_column :activities, :subgroup_division_done, :boolean
5
+  end
6
+end

+ 5 - 3
db/schema.rb

@@ -10,7 +10,7 @@
10 10
 #
11 11
 # It's strongly recommended that you check this file into your version control system.
12 12
 
13
-ActiveRecord::Schema.define(version: 20171001150124) do
13
+ActiveRecord::Schema.define(version: 20171023080215) do
14 14
 
15 15
   create_table "activities", force: :cascade do |t|
16 16
     t.string   "name"
@@ -20,10 +20,12 @@ ActiveRecord::Schema.define(version: 20171001150124) do
20 20
     t.datetime "end"
21 21
     t.datetime "deadline"
22 22
     t.integer  "group_id"
23
-    t.datetime "created_at",    null: false
24
-    t.datetime "updated_at",    null: false
23
+    t.datetime "created_at",                null: false
24
+    t.datetime "updated_at",                null: false
25 25
     t.datetime "reminder_at"
26 26
     t.boolean  "reminder_done"
27
+    t.boolean  "subgroup_division_enabled"
28
+    t.boolean  "subgroup_division_done"
27 29
     t.index ["group_id"], name: "index_activities_on_group_id"
28 30
   end
29 31