From 0cd579997a8ea619968c58a39493d28b9af87e6d Mon Sep 17 00:00:00 2001 From: luke Date: Fri, 15 Dec 2006 00:11:00 +0000 Subject: Some rails modifications git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1931 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/rails/database/01_puppet_initialize.rb | 45 ----------------------- 1 file changed, 45 deletions(-) delete mode 100644 lib/puppet/rails/database/01_puppet_initialize.rb (limited to 'lib/puppet/rails/database') diff --git a/lib/puppet/rails/database/01_puppet_initialize.rb b/lib/puppet/rails/database/01_puppet_initialize.rb deleted file mode 100644 index 485634004..000000000 --- a/lib/puppet/rails/database/01_puppet_initialize.rb +++ /dev/null @@ -1,45 +0,0 @@ -class PuppetInitialize < ActiveRecord::Migration - require 'sqlite3' - - def self.up - if ActiveRecord::Migration.respond_to?(:verbose) - ActiveRecord::Migration.verbose = false - end - - # 'type' cannot be a column name, apparently - create_table :rails_resources do |table| - table.column :title, :string, :null => false - table.column :restype, :string, :null => false - table.column :tags, :string - table.column :file, :string - table.column :line, :integer - table.column :host_id, :integer - table.column :exported, :boolean - end - - create_table :rails_parameters do |table| - table.column :name, :string, :null => false - table.column :value, :string, :null => false - table.column :file, :string - table.column :line, :integer - table.column :rails_resource_id, :integer - end - - create_table :hosts do |table| - table.column :name, :string, :null => false - table.column :ip, :string - table.column :facts, :string - table.column :connect, :date - table.column :success, :date - table.column :classes, :string - end - end - - def self.down - drop_table :rails_resources - drop_table :rails_parameters - drop_table :hosts - end -end - -# $Id$ -- cgit