Sha256: 8f4a81349628c70bdf575ced5e5827d3988795fcd5a76f13104b070f96e92fc2
Contents?: true
Size: 514 Bytes
Versions: 1
Compression:
Stored size: 514 Bytes
Contents
# This migration comes from calagator (originally 20120709092821) 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calagator-0.0.1.pre1 | spec/dummy/db/migrate/20150309023331_cleanup.calagator.rb |