14 lines
289 B
Ruby
14 lines
289 B
Ruby
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
|