Commit 42d4601a authored by John Noel's avatar John Noel

Created Post model

parent cb6cf537
class Post < ApplicationRecord
end
class CreatePosts < ActiveRecord::Migration[5.2]
def change
create_table :posts do |t|
t.string :title
t.text :content
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