db/migrate/20120709092821_cleanup.rb in calagator-1.1.0 vs db/migrate/20120709092821_cleanup.rb in calagator-2.0.0.pre.0
- old
+ new
@@ -1,5 +1,7 @@
-class Cleanup < ActiveRecord::Migration
+# frozen_string_literal: true
+
+class Cleanup < ActiveRecord::Migration[4.2]
# 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