Sha256: 15c5db095991fe4e6653a7d3ad6cc39588259ea198de4533c1bcef8b73546f61
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
class MappingRoutes < ActiveRecord::Migration def self.up create_table :routes do |t| t.column :race_id, :integer t.column :closed, :boolean end create_table :points do |t| t.column :name, :string t.column :route_id, :integer t.column :pos, :integer t.column :required, :boolean t.column :lat, :decimal, :precision => 15, :scale => 10 t.column :lng, :decimal, :precision => 15, :scale => 10 t.column :gridref, :string end end def self.down drop_table :routes drop_table :points end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
radiant-race_results-extension-1.4.6 | db/migrate/20111103150827_mapping_routes.rb |
radiant-race_results-extension-1.4.5 | db/migrate/20111103150827_mapping_routes.rb |