Feature #1767 » 0005-Add-migrations.patch
| db/migrate/20210830000119_update_is_for_all_in_time_entry_custom_field.rb | ||
|---|---|---|
|
class UpdateIsForAllInTimeEntryCustomField < ActiveRecord::Migration[6.1]
|
||
|
def up
|
||
|
TimeEntryCustomField.update_all(is_for_all: true)
|
||
|
end
|
||
|
def down
|
||
|
TimeEntryCustomField.update_all(is_for_all: false)
|
||
|
end
|
||
|
end
|
||
| db/migrate/20210830001037_update_is_for_all_in_project_custom_field.rb | ||
|---|---|---|
|
class UpdateIsForAllInProjectCustomField < ActiveRecord::Migration[6.1]
|
||
|
def up
|
||
|
ProjectCustomField.update_all(is_for_all: true)
|
||
|
end
|
||
|
def down
|
||
|
ProjectCustomField.update_all(is_for_all: false)
|
||
|
end
|
||
|
end
|
||