質問編集履歴
1
要望
title
CHANGED
File without changes
|
body
CHANGED
@@ -84,4 +84,72 @@
|
|
84
84
|
$('#comments').append('<li>' + obj.name + obj.comment + '</li>')
|
85
85
|
```
|
86
86
|
|
87
|
-
説明不足の点が多々あると思いますが、よろしくお願い致します。
|
87
|
+
説明不足の点が多々あると思いますが、よろしくお願い致します。
|
88
|
+
|
89
|
+
|
90
|
+
### 追記 schema.rb
|
91
|
+
```ここに言語を入力
|
92
|
+
ActiveRecord::Schema.define(version: 2019_04_25_165918) do
|
93
|
+
|
94
|
+
create_table "active_storage_attachments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
95
|
+
t.string "name", null: false
|
96
|
+
t.string "record_type", null: false
|
97
|
+
t.bigint "record_id", null: false
|
98
|
+
t.bigint "blob_id", null: false
|
99
|
+
t.datetime "created_at", null: false
|
100
|
+
t.index ["blob_id"], name: "index_active_storage_attachments_on_blob_id"
|
101
|
+
t.index ["record_type", "record_id", "name", "blob_id"], name: "index_active_storage_attachments_uniqueness", unique: true
|
102
|
+
end
|
103
|
+
|
104
|
+
create_table "active_storage_blobs", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
105
|
+
t.string "key", null: false
|
106
|
+
t.string "filename", null: false
|
107
|
+
t.string "content_type"
|
108
|
+
t.text "metadata"
|
109
|
+
t.bigint "byte_size", null: false
|
110
|
+
t.string "checksum", null: false
|
111
|
+
t.datetime "created_at", null: false
|
112
|
+
t.index ["key"], name: "index_active_storage_blobs_on_key", unique: true
|
113
|
+
end
|
114
|
+
|
115
|
+
create_table "accounts", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
116
|
+
t.string "email", default: "", null: false
|
117
|
+
t.string "encrypted_password", default: "", null: false
|
118
|
+
t.string "reset_password_token"
|
119
|
+
t.datetime "reset_password_sent_at"
|
120
|
+
t.datetime "remember_created_at"
|
121
|
+
t.string "confirmation_token"
|
122
|
+
t.datetime "confirmed_at"
|
123
|
+
t.datetime "confirmation_sent_at"
|
124
|
+
t.string "unconfirmed_email"
|
125
|
+
t.datetime "created_at", null: false
|
126
|
+
t.datetime "updated_at", null: false
|
127
|
+
t.string "name"
|
128
|
+
t.integer "postaclcode"
|
129
|
+
t.text "address"
|
130
|
+
t.string "handlename"
|
131
|
+
t.text "profile"
|
132
|
+
t.bigint "m_rank_id"
|
133
|
+
t.boolean "delflg"
|
134
|
+
t.index ["email"], name: "index_accounts_on_email", unique: true
|
135
|
+
t.index ["m_rank_id"], name: "index_accounts_on_m_rank_id"
|
136
|
+
t.index ["reset_password_token"], name: "index_accounts_on_reset_password_token", unique: true
|
137
|
+
end
|
138
|
+
|
139
|
+
create_table "comments", options: "ENGINE=InnoDB DEFAULT CHARSET=utf8", force: :cascade do |t|
|
140
|
+
t.bigint "work_id"
|
141
|
+
t.bigint "account_id"
|
142
|
+
t.text "comment"
|
143
|
+
t.boolean "delflg"
|
144
|
+
t.datetime "created_at", null: false
|
145
|
+
t.datetime "updated_at", null: false
|
146
|
+
t.index ["account_id"], name: "index_comments_on_account_id"
|
147
|
+
t.index ["work_id"], name: "index_comments_on_work_id"
|
148
|
+
end
|
149
|
+
|
150
|
+
|
151
|
+
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
152
|
+
add_foreign_key "comments", "accounts"
|
153
|
+
add_foreign_key "comments", "works"
|
154
|
+
end
|
155
|
+
```
|