Этот коммит содержится в:
Mattia Roccoberton
2021-05-23 14:23:19 +02:00
родитель d41f8450ea
Коммит 9b460d36e3
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