migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm

This commit is contained in:
Nick Black 2008-01-23 17:31:51 +00:00
parent 8d2a4ee67a
commit 4edd6d6fe9
2 changed files with 23 additions and 0 deletions

View file

@ -0,0 +1,13 @@
class PopulateNodeTagsAndRemove < ActiveRecord::Migration
def self.up
#rake import
remove_column :nodes, :tags
remove_column :current_nodes, :tags
end
def self.down
add_column :nodes, "tags", :text, :default => "", :null => false
add_column :current_nodes, "tags", :text, :default => "", :null => false
end
end

View file

@ -0,0 +1,10 @@
class AddVersionToNodes < ActiveRecord::Migration
def self.up
add_column :nodes, :version, :bigint, :limit => 20, :default => 0, :null => false
end
def self.down
remove_column :nodes, :version
add_index "nodes", ["id"], :name => "nodes_uid_idx"
end
end