added Project model with project_name and Task model with title&status
This commit is contained in:
9
db/migrate/20260126072711_create_projects.rb
Normal file
9
db/migrate/20260126072711_create_projects.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreateProjects < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :projects do |t|
|
||||
t.string :project_name
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/migrate/20260126072814_create_tasks.rb
Normal file
10
db/migrate/20260126072814_create_tasks.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateTasks < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
create_table :tasks do |t|
|
||||
t.string :title
|
||||
t.string :status
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user