|
10 | 10 | # |
11 | 11 | # It's strongly recommended that you check this file into your version control system. |
12 | 12 |
|
13 | | -version = 2 |
| 13 | +version = 3 |
14 | 14 |
|
15 | 15 | return if ActiveRecord::Migrator.current_version == version |
16 | 16 | ActiveRecord::Schema.define(version: version) do |
|
77 | 77 | create_table "texts", force: :cascade do |t| |
78 | 78 | t.integer "user_id" |
79 | 79 | t.string "content" |
80 | | - t.enum "conflict", enum_type: :conflicts |
| 80 | + t.enum "conflict", enum_type: :conflicts |
81 | 81 | end |
82 | 82 |
|
83 | 83 | create_table "comments", force: :cascade do |t| |
84 | | - t.integer "user_id", null: false |
| 84 | + t.integer "user_id", null: false |
85 | 85 | t.integer "comment_id" |
86 | 86 | t.integer "video_id" |
87 | | - t.text "content", null: false |
| 87 | + t.text "content", null: false |
88 | 88 | t.string "kind" |
89 | 89 | t.index ["user_id"], name: "index_comments_on_user_id", using: :btree |
90 | 90 | t.index ["comment_id"], name: "index_comments_on_comment_id", using: :btree |
91 | 91 | end |
92 | 92 |
|
93 | 93 | create_table "courses", force: :cascade do |t| |
94 | 94 | t.integer "category_id" |
95 | | - t.string "title", null: false |
| 95 | + t.string "title", null: false |
96 | 96 | t.interval "duration" |
97 | 97 | t.enum "types", enum_type: :types, array: true |
98 | 98 | t.datetime "created_at", null: false |
|
108 | 108 | t.integer "activity_id" |
109 | 109 | t.string "title" |
110 | 110 | t.text "content" |
111 | | - t.enum "status", enum_type: :content_status |
| 111 | + t.enum "status", enum_type: :content_status |
112 | 112 | t.index ["author_id"], name: "index_posts_on_author_id", using: :btree |
113 | 113 | end |
114 | 114 |
|
|
120 | 120 | end |
121 | 121 |
|
122 | 122 | create_table "users", force: :cascade do |t| |
123 | | - t.string "name", null: false |
124 | | - t.enum "role", enum_type: :roles, default: :visitor |
| 123 | + t.string "name", null: false |
| 124 | + t.enum "role", enum_type: :roles, default: :visitor |
125 | 125 | t.datetime "created_at", null: false |
126 | 126 | t.datetime "updated_at", null: false |
127 | 127 | end |
|
137 | 137 | t.integer "author_id" |
138 | 138 | t.string "title" |
139 | 139 | t.boolean "active" |
140 | | - t.enum "kind", enum_type: :types |
| 140 | + t.enum "kind", enum_type: :types |
141 | 141 | t.datetime "created_at", null: false |
142 | 142 | t.datetime "updated_at", null: false |
143 | 143 | end |
|
0 commit comments