11 lines
222 B
Ruby
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
|