Add fields to models
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddCompletedAndPriorityToTodos < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :todos, :completed, :boolean, default: false, null: false
|
||||
add_column :todos, :priority, :integer, default: 1, null: false
|
||||
end
|
||||
end
|
||||
5
db/migrate/20251027122702_add_active_to_projects.rb
Normal file
5
db/migrate/20251027122702_add_active_to_projects.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddActiveToProjects < ActiveRecord::Migration[8.1]
|
||||
def change
|
||||
add_column :projects, :active, :boolean, default: true, null: false
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user