Patch #31230 » clear_cache-master.patch
db/migrate/20160416072926_remove_position_defaults.rb | ||
---|---|---|
1 | 1 |
class RemovePositionDefaults < ActiveRecord::Migration[4.2] |
2 | 2 |
def up |
3 | 3 |
[Board, CustomField, Enumeration, IssueStatus, Role, Tracker].each do |klass| |
4 |
schema_cache.clear_table_cache!(klass.table_name) |
|
4 | 5 |
change_column klass.table_name, :position, :integer, :default => nil |
5 | 6 |
end |
6 | 7 |
end |