12 lines
195 B
Ruby
12 lines
195 B
Ruby
|
class CreatePosts < ActiveRecord::Migration[7.0]
|
||
|
def change
|
||
|
create_table :posts do |t|
|
||
|
t.string :title
|
||
|
t.string :author
|
||
|
t.text :body
|
||
|
|
||
|
t.timestamps
|
||
|
end
|
||
|
end
|
||
|
end
|