This repository has been archived on 2023-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
|
class CreatePosts < ActiveRecord::Migration[6.1]
|
|
def change
|
|
create_table :posts do |t|
|
|
t.timestamps
|
|
t.references :profile, null: false, foreign_key: true
|
|
t.string :text, null: false
|
|
t.datetime :published_at, null: false
|
|
end
|
|
end
|
|
end
|