thirteen-tien-len/db/migrate/20231026005659_create_projects.rb
2023-10-26 01:34:10 +00:00

12 lines
242 B
Ruby

class CreateProjects < ActiveRecord::Migration[6.1]
def change
create_table :projects do |t|
t.string :title
t.text :description
t.belongs_to :user, null: false, foreign_key: true
t.timestamps
end
end
end