add models for Project, Task, Note, Category
This commit is contained in:
14
db/migrate/20250611172728_create_projects.rb
Normal file
14
db/migrate/20250611172728_create_projects.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
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
|
||||
Reference in New Issue
Block a user