ClearTransitServer/db/migrate/20140118012229_initial_db.rb
2014-11-22 17:13:30 -08:00

28 lines
646 B
Ruby

class InitialDb < ActiveRecord::Migration
def up
create_table :route_matches do |t|
t.string :user_route
t.string :match_route
t.string :match_title
t.integer :distance
t.string :agency
t.boolean :accepted
t.timestamps
end
create_table :agency_bounds do |t|
t.string :agency
t.float :lat_max
t.float :lat_min
t.float :lon_max
t.float :lon_min
t.timestamps
end
end
def down
drop_table :route_matches
drop_table :agency_bounds
end
end