# frozen_string_literal: true

class CreatePosts < ActiveRecord::Migration[5.0] # :nodoc:
  def change
    create_table :posts do |t|
      t.belongs_to :blog, foreign_key: true
      t.string :title
      t.text :body
      t.string :author
      t.string :permalink
      t.boolean :allow_comments, default: true
      t.text :settings
      t.datetime :published_at
      t.timestamps
    end
  end
end
