|
19 | 19 | enable_extension "uuid-ossp" |
20 | 20 |
|
21 | 21 | create_table "applications", force: :cascade do |t| |
22 | | - t.string "name" |
| 22 | + t.string "name", limit: 255 |
23 | 23 | t.datetime "created_at" |
24 | 24 | t.datetime "updated_at" |
25 | | - t.boolean "write", default: false |
| 25 | + t.boolean "write", default: false |
26 | 26 | t.integer "tenant_id" |
27 | 27 | end |
28 | 28 |
|
29 | 29 | add_index "applications", ["tenant_id"], name: "index_applications_on_tenant_id", using: :btree |
30 | 30 |
|
31 | 31 | create_table "authors", force: :cascade do |t| |
32 | | - t.string "firstname" |
33 | | - t.string "lastname" |
34 | | - t.string "email" |
| 32 | + t.string "firstname", limit: 255 |
| 33 | + t.string "lastname", limit: 255 |
| 34 | + t.string "email", limit: 255 |
35 | 35 | t.hstore "sites" |
36 | | - t.string "title" |
| 36 | + t.string "title", limit: 255 |
37 | 37 | t.text "bio" |
38 | 38 | t.integer "user_id" |
39 | 39 | end |
|
77 | 77 | t.integer "category_id", null: false |
78 | 78 | end |
79 | 79 |
|
80 | | - create_table "document_types", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| |
81 | | - t.integer "user_id" |
82 | | - t.jsonb "attributes", default: {}, null: false |
83 | | - t.string "name", null: false |
84 | | - t.string "implements", default: [], array: true |
85 | | - t.boolean "abstract", null: false |
86 | | - t.boolean "stateful", null: false |
87 | | - t.boolean "tracked", null: false |
88 | | - t.boolean "versioned", null: false |
89 | | - t.datetime "created_at", null: false |
90 | | - t.datetime "updated_at", null: false |
91 | | - t.datetime "deleted_at" |
92 | | - end |
93 | | - |
94 | | - add_index "document_types", ["attributes"], name: "index_document_types_on_attributes", using: :gin |
95 | | - add_index "document_types", ["id"], name: "index_document_types_on_id", using: :btree |
96 | | - add_index "document_types", ["name"], name: "index_document_types_on_name", using: :btree |
97 | | - add_index "document_types", ["user_id"], name: "index_document_types_on_user_id", using: :btree |
98 | | - |
99 | | - create_table "document_types_documents", id: false, force: :cascade do |t| |
100 | | - t.integer "document_types_id" |
101 | | - t.integer "documents_id" |
102 | | - end |
103 | | - |
104 | | - add_index "document_types_documents", ["document_types_id"], name: "index_document_types_documents_on_document_types_id", using: :btree |
105 | | - add_index "document_types_documents", ["documents_id"], name: "index_document_types_documents_on_documents_id", using: :btree |
106 | | - |
107 | | - create_table "documents", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| |
108 | | - t.integer "user_id" |
109 | | - t.jsonb "attributes", default: {}, null: false |
110 | | - t.string "name", null: false |
111 | | - t.string "implements", default: [], array: true |
112 | | - t.datetime "created_at" |
113 | | - t.datetime "updated_at" |
| 80 | + create_table "documents", force: :cascade do |t| |
| 81 | + t.integer "user_id", null: false |
| 82 | + t.string "name" |
| 83 | + t.text "body" |
114 | 84 | t.datetime "deleted_at" |
| 85 | + t.datetime "created_at", null: false |
| 86 | + t.datetime "updated_at", null: false |
115 | 87 | end |
116 | 88 |
|
117 | | - add_index "documents", ["attributes"], name: "index_documents_on_attributes", using: :gin |
118 | | - add_index "documents", ["id"], name: "index_documents_on_id", using: :btree |
119 | | - add_index "documents", ["name"], name: "index_documents_on_name", using: :btree |
120 | 89 | add_index "documents", ["user_id"], name: "index_documents_on_user_id", using: :btree |
121 | 90 |
|
122 | 91 | create_table "locales", id: :uuid, default: "uuid_generate_v4()", force: :cascade do |t| |
123 | | - t.string "name", null: false |
| 92 | + t.string "name", limit: 255, null: false |
124 | 93 | t.integer "localization_id" |
125 | 94 | t.integer "user_id" |
126 | 95 | t.datetime "created_at" |
|
212 | 181 | add_index "oauth_applications", ["owner_id", "owner_type"], name: "index_oauth_applications_on_owner_id_and_owner_type", using: :btree |
213 | 182 | add_index "oauth_applications", ["uid"], name: "index_oauth_applications_on_uid", unique: true, using: :btree |
214 | 183 |
|
215 | | - create_table "old_documents", force: :cascade do |t| |
216 | | - t.integer "user_id", null: false |
217 | | - t.string "name" |
218 | | - t.text "body" |
219 | | - t.datetime "deleted_at" |
220 | | - t.datetime "created_at", null: false |
221 | | - t.datetime "updated_at", null: false |
222 | | - end |
223 | | - |
224 | | - add_index "old_documents", ["user_id"], name: "index_old_documents_on_user_id", using: :btree |
225 | | - |
226 | 184 | create_table "onet_occupations", force: :cascade do |t| |
227 | 185 | t.string "soc", limit: 255 |
228 | 186 | t.string "title", limit: 255 |
|
256 | 214 | t.string "seo_description", limit: 255 |
257 | 215 | t.string "seo_preview", limit: 255 |
258 | 216 | t.string "custom_author", limit: 255 |
259 | | - t.string "slug", null: false |
| 217 | + t.string "slug", limit: 255, null: false |
260 | 218 | t.integer "featured_media_id" |
261 | 219 | t.integer "primary_industry_id" |
262 | 220 | t.integer "primary_category_id" |
263 | 221 | t.integer "tile_media_id" |
264 | 222 | t.hstore "meta" |
265 | | - t.string "type", default: "Post", null: false |
| 223 | + t.string "type", limit: 255, default: "Post", null: false |
266 | 224 | t.integer "author_id" |
267 | 225 | t.boolean "is_wysiwyg", default: true |
268 | 226 | end |
|
0 commit comments