]> git.openstreetmap.org Git - rails.git/blob - db/migrate/014_add_version_to_nodes.rb
8afa54875f0342818a584cd0b92111c4c8f834df
[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