discourse/db/migrate/20130501105651_fix_topic_allowed_groups.rb
Krzysztof Kotlarek 32b8a2ccff DEV: Upgrade Discourse to Rails 6 (#8083)
* Adjustments to pass specs on Rails 6.0.0
* Use classic autoloader instead of Zeitwerk
* Update Rails 6.0.0 deprecated methods
* Rails 6.0.0 not allowing column with integer name
* Drop freedom_patches/rails6.rb
* Default value for trigger_transactional_callbacks? is true
* Bump rspec-rails version to 4.0.0.beta2
2019-09-12 10:41:50 +10:00

9 lines
229 B
Ruby

# frozen_string_literal: true
class FixTopicAllowedGroups < ActiveRecord::Migration[4.2]
def change
# big oops
remove_column :topic_allowed_groups, :integer if column_exists?(:topic_allowed_groups, :integer)
end
end