X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5b33f3f8e31c62bc3e5db1d5b120533c3afdde68..2233edbcfa15d532c2232e5e71a2a2495e3a72eb:/db/migrate/039_add_more_controls_to_gpx_files.rb diff --git a/db/migrate/039_add_more_controls_to_gpx_files.rb b/db/migrate/039_add_more_controls_to_gpx_files.rb index 5a905c044..728b56989 100644 --- a/db/migrate/039_add_more_controls_to_gpx_files.rb +++ b/db/migrate/039_add_more_controls_to_gpx_files.rb @@ -1,6 +1,8 @@ -require "migrate" +class AddMoreControlsToGpxFiles < ActiveRecord::Migration[4.2] + class Trace < ApplicationRecord + self.table_name = "gpx_files" + end -class AddMoreControlsToGpxFiles < ActiveRecord::Migration 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