diff options
Diffstat (limited to 'lib/puppet/rails')
-rw-r--r-- | lib/puppet/rails/database/schema.rb | 9 | ||||
-rw-r--r-- | lib/puppet/rails/resource.rb | 2 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/puppet/rails/database/schema.rb b/lib/puppet/rails/database/schema.rb index 322e6f839..b69840eb1 100644 --- a/lib/puppet/rails/database/schema.rb +++ b/lib/puppet/rails/database/schema.rb @@ -13,17 +13,20 @@ class Puppet::Rails::Schema t.column :source_file_id, :integer t.column :exported, :boolean t.column :line, :integer + t.column :updated_at, :date end create_table :source_files do |t| t.column :filename, :string t.column :path, :string + t.column :updated_at, :date end create_table :puppet_classes do |t| t.column :name, :string t.column :host_id, :integer t.column :source_file_id, :integer + t.column :updated_at, :date end create_table :hosts do |t| @@ -38,32 +41,38 @@ class Puppet::Rails::Schema create_table :fact_names do |t| t.column :name, :string, :null => false t.column :host_id, :integer, :null => false + t.column :updated_at, :date end create_table :fact_values do |t| t.column :value, :string, :null => false t.column :fact_name_id, :integer, :null => false + t.column :updated_at, :date end create_table :param_values do |t| t.column :value, :string, :null => false t.column :param_name_id, :integer, :null => false + t.column :updated_at, :date end create_table :param_names do |t| t.column :name, :string, :null => false t.column :resource_id, :integer t.column :line, :integer + t.column :updated_at, :date end create_table :tags do |t| t.column :name, :string + t.column :updated_at, :date end create_table :taggings do |t| t.column :tag_id, :integer t.column :taggable_id, :integer t.column :taggable_type, :string + t.column :updated_at, :date end end $stdout.close diff --git a/lib/puppet/rails/resource.rb b/lib/puppet/rails/resource.rb index 2608daef1..bb36f161b 100644 --- a/lib/puppet/rails/resource.rb +++ b/lib/puppet/rails/resource.rb @@ -61,7 +61,7 @@ class Puppet::Rails::Resource < ActiveRecord::Base # FIXME At some point, we're going to want to retain this information # for logging and auditing. hash.delete("host_id") - + hash.delete("updated_at") hash.delete("source_file_id") hash.delete("id") hash.each do |p, v| |