Sha256: eb3f3bdd33f7afb8cc5f714353102eff9654a008e171a230ff9377de40f321f0
Contents?: true
Size: 448 Bytes
Versions: 13
Compression:
Stored size: 448 Bytes
Contents
class Cleanup < ActiveRecord::Migration # Remove obsolete tables and columns that may have been left behind by other migrations. def self.up if ActiveRecord::Base.connection.columns('venues').map(&:name).include?("version") remove_column :venues, :version end %w[event_versions venue_versions].each do |table| if ActiveRecord::Base.connection.tables.include?(table) drop_table table end end end end
Version data entries
13 entries across 13 versions & 2 rubygems