]> git.openstreetmap.org Git - rails.git/blob - db/migrate/014_add_version_to_nodes.rb
migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm
[rails.git] / db / migrate / 014_add_version_to_nodes.rb
1 class AddVersionToNodes < ActiveRecord::Migration
2   def self.up
3     add_column :nodes, :version, :bigint, :limit => 20, :default => 0, :null => false
4   end
5
6   def self.down
7     remove_column :nodes, :version
8     add_index "nodes", ["id"], :name => "nodes_uid_idx"
9   end
10 end