]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/039_add_more_controls_to_gpx_files.rb
Drop old user image columns
[rails.git] / db / migrate / 039_add_more_controls_to_gpx_files.rb
index 5a905c044e0e3fc210c12be12c7afcee58ab71f9..6ce26588ea818337aa2fef5d9faa8d5a86102c84 100644 (file)
@@ -1,6 +1,10 @@
 require "migrate"
 
-class AddMoreControlsToGpxFiles < ActiveRecord::Migration
+class AddMoreControlsToGpxFiles < ActiveRecord::Migration[4.2]
+  class Trace < ActiveRecord::Base
+    self.table_name = "gpx_files"
+  end
+
   def self.up
     create_enumeration :gpx_visibility_enum, %w[private public trackable identifiable]
     add_column :gpx_files, :visibility, :gpx_visibility_enum, :default => "public", :null => false