]> git.openstreetmap.org Git - rails.git/blob - db/migrate/030_add_foreign_keys.rb
Fix bogus casts - lat/lon are signed.
[rails.git] / db / migrate / 030_add_foreign_keys.rb
1 class AddForeignKeys < ActiveRecord::Migration
2   def self.up
3     add_foreign_key :changeset_tags, [:id], :changesets
4     add_foreign_key :diary_comments, [:diary_entry_id], :diary_entries, [:id]
5     add_foreign_key :gps_points, [:gpx_id], :gpx_files, [:id]
6     add_foreign_key :gpx_file_tags, [:gpx_id], :gpx_files, [:id]
7   end
8
9   def self.down
10     raise IrreversibleMigration.new
11   end
12 end