class CreateArticles < ActiveRecord::Migration[6.1]
  def change
    create_table :articles do |t|
      t.string :title
      t.text :content
      t.integer :pagecount
      t.datetime :published_at
      t.boolean :published
      t.references :category, foreign_key: true, index: true
    end
  end
end
