Project

General

Profile

Feature #1767 » 0005-Add-migrations.patch

Yuichi HARADA, 2021-09-08 03:44

View differences:

db/migrate/20210830000119_update_is_for_all_in_time_entry_custom_field.rb
1
class UpdateIsForAllInTimeEntryCustomField < ActiveRecord::Migration[6.1]
2
  def up
3
    TimeEntryCustomField.update_all(is_for_all: true)
4
  end
5

  
6
  def down
7
    TimeEntryCustomField.update_all(is_for_all: false)
8
  end
9
end
db/migrate/20210830001037_update_is_for_all_in_project_custom_field.rb
1
class UpdateIsForAllInProjectCustomField < ActiveRecord::Migration[6.1]
2
  def up
3
    ProjectCustomField.update_all(is_for_all: true)
4
  end
5

  
6
  def down
7
    ProjectCustomField.update_all(is_for_all: false)
8
  end
9
end
(5-5/11)