Add comments'
This commit is contained in:
+10
-1
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 2021_12_16_184103) do
|
||||
ActiveRecord::Schema.define(version: 2021_12_16_185503) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -60,6 +60,15 @@ ActiveRecord::Schema.define(version: 2021_12_16_184103) do
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
end
|
||||
|
||||
create_table "comments", force: :cascade do |t|
|
||||
t.bigint "article_id", null: false
|
||||
t.text "content"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.index ["article_id"], name: "index_comments_on_article_id"
|
||||
end
|
||||
|
||||
add_foreign_key "active_storage_attachments", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "active_storage_variant_records", "active_storage_blobs", column: "blob_id"
|
||||
add_foreign_key "comments", "articles"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user