|
121 | 121 | create_table "fae_files", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
122 | 122 | t.string "name" |
123 | 123 | t.string "asset" |
124 | | - t.integer "fileable_id" |
125 | 124 | t.string "fileable_type" |
| 125 | + t.integer "fileable_id" |
126 | 126 | t.integer "file_size" |
127 | 127 | t.integer "position", default: 0 |
128 | 128 | t.string "attached_as" |
|
131 | 131 | t.datetime "created_at" |
132 | 132 | t.datetime "updated_at" |
133 | 133 | t.boolean "required", default: false |
134 | | - t.index ["fileable_id", "fileable_type"], name: "index_fae_files_on_fileable_id_and_fileable_type" |
| 134 | + t.index ["attached_as"], name: "index_fae_files_on_attached_as" |
| 135 | + t.index ["fileable_type", "fileable_id"], name: "index_fae_files_on_fileable_type_and_fileable_id" |
135 | 136 | end |
136 | 137 |
|
137 | 138 | create_table "fae_form_managers", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
|
147 | 148 | create_table "fae_images", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
148 | 149 | t.string "name" |
149 | 150 | t.string "asset" |
150 | | - t.integer "imageable_id" |
151 | 151 | t.string "imageable_type" |
| 152 | + t.integer "imageable_id" |
152 | 153 | t.string "alt" |
153 | 154 | t.string "caption" |
154 | 155 | t.integer "position", default: 0 |
|
159 | 160 | t.datetime "updated_at" |
160 | 161 | t.integer "file_size" |
161 | 162 | t.boolean "required", default: false |
162 | | - t.index ["imageable_id", "imageable_type"], name: "index_fae_images_on_imageable_id_and_imageable_type" |
| 163 | + t.index ["attached_as"], name: "index_fae_images_on_attached_as" |
| 164 | + t.index ["imageable_type", "imageable_id"], name: "index_fae_images_on_imageable_type_and_imageable_id" |
163 | 165 | end |
164 | 166 |
|
165 | 167 | create_table "fae_options", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
|
212 | 214 | end |
213 | 215 |
|
214 | 216 | create_table "fae_text_fields", id: :integer, options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t| |
215 | | - t.integer "contentable_id" |
216 | 217 | t.string "contentable_type" |
| 218 | + t.integer "contentable_id" |
217 | 219 | t.string "attached_as" |
218 | 220 | t.string "label" |
219 | 221 | t.string "content" |
|
223 | 225 | t.datetime "created_at" |
224 | 226 | t.datetime "updated_at" |
225 | 227 | t.index ["attached_as"], name: "index_fae_text_fields_on_attached_as" |
226 | | - t.index ["contentable_id", "contentable_type"], name: "index_fae_text_fields_on_contentable_id_and_contentable_type" |
| 228 | + t.index ["contentable_type", "contentable_id"], name: "index_fae_text_fields_on_contentable_type_and_contentable_id" |
227 | 229 | t.index ["on_prod"], name: "index_fae_text_fields_on_on_prod" |
228 | 230 | t.index ["on_stage"], name: "index_fae_text_fields_on_on_stage" |
229 | 231 | t.index ["position"], name: "index_fae_text_fields_on_position" |
|
0 commit comments