Этот коммит содержится в:
Mattia Roccoberton
2021-05-23 14:23:19 +02:00
родитель 538e933490
Коммит d397697bd9
7 изменённых файлов: 85 добавлений и 39 удалений

Просмотреть файл

@@ -4,6 +4,7 @@ class CreatePosts < ActiveRecord::Migration[5.2]
def change
create_table :posts do |t|
t.string :title
t.text :summary
t.text :description
t.belongs_to :author, foreign_key: true
t.string :category