diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-13 07:49:48 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-11-13 07:49:48 +0000 |
commit | 35de0e3bd74e94de92ac0e9209a4884cf07c88a0 (patch) | |
tree | be7119181bc15dad6575cc5b7087c92cfd7fbac8 /lib/puppet/rails/database/schema_init.rb | |
parent | 26b32b953d8e097785b38aa90e5e4bff6ae9247e (diff) | |
download | puppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.tar.gz puppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.tar.xz puppet-35de0e3bd74e94de92ac0e9209a4884cf07c88a0.zip |
Temporarily reverting all of the recent rails work so that I can release 0.20.1
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1873 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/rails/database/schema_init.rb')
-rw-r--r-- | lib/puppet/rails/database/schema_init.rb | 64 |
1 files changed, 0 insertions, 64 deletions
diff --git a/lib/puppet/rails/database/schema_init.rb b/lib/puppet/rails/database/schema_init.rb deleted file mode 100644 index 9151bee46..000000000 --- a/lib/puppet/rails/database/schema_init.rb +++ /dev/null @@ -1,64 +0,0 @@ -class Puppet::Rails::Schema - -def self.init - ActiveRecord::Schema.define do - create_table :resources do |t| - t.column :title, :string, :null => false - t.column :type, :string - t.column :host_id, :integer - t.column :source_file_id, :integer - t.column :exported, :boolean - end - - create_table :source_files do |t| - t.column :filename, :string - t.column :path, :string - end - - create_table :puppet_classes do |t| - t.column :name, :string - t.column :host_id, :integer - t.column :source_file_id, :integer - end - - create_table :hosts do |t| - t.column :name, :string, :null => false - t.column :ip, :string - t.column :connect, :date - #Use updated_at to automatically add timestamp on save. - t.column :updated_at, :date - t.column :source_file_id, :integer - end - - create_table :fact_names do |t| - t.column :name, :string, :null => false - t.column :host_id, :integer, :null => false - end - - create_table :fact_values do |t| - t.column :value, :string, :null => false - t.column :fact_name_id, :integer, :null => false - end - - create_table :param_values do |t| - t.column :value, :string, :null => false - t.column :param_name_id, :integer, :null => false - end - - create_table :param_names do |t| - t.column :name, :string, :null => false - t.column :resource_id, :integer - end - - create_table :tags do |t| - t.column :name, :string - end - - create_table :taggings do |t| - t.column :tag_id, :integer - t.column :taggable_id, :integer - t.column :taggable_type, :string - end - end -end -end |