diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-13 23:03:29 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-06-13 23:03:29 +0000 |
commit | 7c53aab1ad228636c13aa558838d2d57234bf97a (patch) | |
tree | 0f7c94792397d69c5223862b68edd4ff637e60df /lib/puppet/rails/database | |
parent | ef2698c316562172fc78eee45507acd603a06e70 (diff) | |
download | puppet-7c53aab1ad228636c13aa558838d2d57234bf97a.tar.gz puppet-7c53aab1ad228636c13aa558838d2d57234bf97a.tar.xz puppet-7c53aab1ad228636c13aa558838d2d57234bf97a.zip |
Removing the indexes migration, since the indexes are now in the main db schema
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2574 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails/database')
-rw-r--r-- | lib/puppet/rails/database/001_add_indexes.rb | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/lib/puppet/rails/database/001_add_indexes.rb b/lib/puppet/rails/database/001_add_indexes.rb deleted file mode 100644 index becae5ca0..000000000 --- a/lib/puppet/rails/database/001_add_indexes.rb +++ /dev/null @@ -1,38 +0,0 @@ -class AddIndexes < ActiveRecord::Migration - INDEXES = { - :resources => [[:title, :restype], :host_id, :exported], - :source_files => [:filename, :path], - :puppet_classes => [:name, :host_id], - :hosts => [:name, :ip, :updated_at], - :fact_names => [:name, :host_id], - :fact_values => [:fact_name_id], - :param_values => [:param_name_id], - :param_names => [:name, :resource_id], - :tags => [:name, :updated_at], - :taggings => [:tag_id, :taggable_id, :taggable_type] - } - - def self.up - puts "trying" - # Add all of our initial indexes - INDEXES.each do |table, indexes| - indexes.each do |index| - if index.to_s =~ /_id/ - add_index table, index, :integer => true - else - add_index table, index - end - end - end - end - - def self.down - INDEXES.each do |table, indexes| - indexes.each do |index| - remove_index table, index - end - end - end -end - -# $Id$ |