docbrown/db/migrate/20190501191830_create_pages.rb
Ben Halpern 5891b2ea58
Add application "page" model (#2657)
* Generate page model

* Add page model

* Conditionally modify html rendering
2019-05-02 18:24:06 -04:00

17 lines
429 B
Ruby

class CreatePages < ActiveRecord::Migration[5.2]
def change
create_table :pages do |t|
t.string :title
t.text :body_markdown
t.text :body_html
t.text :processed_html
t.string :slug
t.string :description
t.string :social_image
t.string :template
t.string :group
t.integer :group_order_number
t.timestamps
end
end
end