ClearTransitServer/db/migrate/20140118012229_initial_db.rb

28 lines
646 B
Ruby
Raw Normal View History

2014-11-23 01:05:03 +00:00
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