12 lines
200 B
Ruby
12 lines
200 B
Ruby
class CreateBlogposts < ActiveRecord::Migration
|
|
def change
|
|
create_table :blogposts do |t|
|
|
t.string :title
|
|
t.text :text
|
|
t.references :user
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|