add models for Project, Task, Note, Category
This commit is contained in:
13
db/migrate/20250611174428_create_notes.rb
Normal file
13
db/migrate/20250611174428_create_notes.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
class CreateNotes < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
create_table :notes do |t|
|
||||
t.string :title
|
||||
t.text :description
|
||||
t.boolean :pinned
|
||||
t.boolean :archived
|
||||
t.references :project, null: false, foreign_key: true
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user