|
@@ -12,11 +12,14 @@
|
12
|
12
|
|
13
|
13
|
ActiveRecord::Schema.define(version: 2021_05_10_133939) do
|
14
|
14
|
|
|
15
|
+ # These are extensions that must be enabled in order to support this database
|
|
16
|
+ enable_extension "plpgsql"
|
|
17
|
+
|
15
|
18
|
create_table "activities", force: :cascade do |t|
|
16
|
19
|
t.string "name", null: false
|
17
|
20
|
t.string "client"
|
18
|
21
|
t.string "description"
|
19
|
|
- t.integer "author_id", null: false
|
|
22
|
+ t.bigint "author_id", null: false
|
20
|
23
|
t.datetime "created_at", precision: 6, null: false
|
21
|
24
|
t.datetime "updated_at", precision: 6, null: false
|
22
|
25
|
t.index ["author_id"], name: "index_activities_on_author_id"
|
|
@@ -24,8 +27,8 @@ ActiveRecord::Schema.define(version: 2021_05_10_133939) do
|
24
|
27
|
end
|
25
|
28
|
|
26
|
29
|
create_table "joined_user_activities", force: :cascade do |t|
|
27
|
|
- t.integer "user_id"
|
28
|
|
- t.integer "activity_id"
|
|
30
|
+ t.bigint "user_id"
|
|
31
|
+ t.bigint "activity_id"
|
29
|
32
|
t.datetime "created_at", precision: 6, null: false
|
30
|
33
|
t.datetime "updated_at", precision: 6, null: false
|
31
|
34
|
t.index ["activity_id"], name: "index_joined_user_activities_on_activity_id"
|
|
@@ -36,8 +39,8 @@ ActiveRecord::Schema.define(version: 2021_05_10_133939) do
|
36
|
39
|
t.string "name", null: false
|
37
|
40
|
t.text "description"
|
38
|
41
|
t.integer "duration"
|
39
|
|
- t.integer "activity_id", null: false
|
40
|
|
- t.integer "user_id", null: false
|
|
42
|
+ t.bigint "activity_id", null: false
|
|
43
|
+ t.bigint "user_id", null: false
|
41
|
44
|
t.datetime "created_at", precision: 6, null: false
|
42
|
45
|
t.datetime "updated_at", precision: 6, null: false
|
43
|
46
|
t.index ["activity_id"], name: "index_tasks_on_activity_id"
|