migration 013 removes tags from nodes and old nodes tables/ 014 does not do anything atm
This commit is contained in:
parent
8d2a4ee67a
commit
4edd6d6fe9
2 changed files with 23 additions and 0 deletions
13
db/migrate/013_populate_node_tags_and_remove.rb
Normal file
13
db/migrate/013_populate_node_tags_and_remove.rb
Normal 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
|
10
db/migrate/014_add_version_to_nodes.rb
Normal file
10
db/migrate/014_add_version_to_nodes.rb
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue