Sha256: 8eab93bec02201b41df3d737aa9e12eb3966d71b41f13663086591567bc380b4
Contents?: true
Size: 274 Bytes
Versions: 1
Compression:
Stored size: 274 Bytes
Contents
class AddKindToPhysicalRoads < ActiveRecord::Migration def change add_column :physical_roads, :kind, :string ActiveRoad::PhysicalRoad.reset_column_information ActiveRoad::PhysicalRoad.update_all :kind => "road" add_index :physical_roads, :kind end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_road-0.0.2 | db/migrate/20120419093427_add_kind_to_physical_roads.rb |