vereto-api/db/migrate/20180219100642_create_articles.rb
2018-02-19 16:03:07 +00:00

11 lines
222 B
Ruby

class CreateArticles < ActiveRecord::Migration[5.1]
def change
create_table :articles do |t|
t.string :title
t.text :post
t.references :user, foreign_key: true
t.timestamps
end
end
end