Commit 886dcc16 authored by Milan's avatar Milan

create blogpost model

parent 1b42c144
class Blogpost < ApplicationRecord
end
class CreateBlogposts < ActiveRecord::Migration[5.0]
def change
create_table :blogposts do |t|
t.string :title
t.text :body
t.timestamps
end
end
end
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment