12 lines
242 B
Ruby
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
|