15 lines
362 B
Ruby
15 lines
362 B
Ruby
class CreateProjects < ActiveRecord::Migration[8.0]
|
|
def change
|
|
create_table :projects do |t|
|
|
t.string :title
|
|
t.string :website
|
|
t.string :email
|
|
t.integer :business_type
|
|
t.references :user, null: false, foreign_key: true
|
|
t.references :project_category, null: false, foreign_key: true
|
|
|
|
t.timestamps
|
|
end
|
|
end
|
|
end
|