- 
                Notifications
    
You must be signed in to change notification settings  - Fork 2.3k
 
Auditing
        Benoit Bénézech edited this page Jan 3, 2014 
        ·
        7 revisions
      
    The old history internal plugin installer has been removed. Papertrail integration (link below) is recommended instead.
While old history is moved to its own gem, you can still install it manually with this migration:
class CreateRailsAdminHistoriesTable < ActiveRecord::Migration
   def self.up
     create_table :rails_admin_histories do |t|
       t.text :message # title, name, or object_id
       t.string :username
       t.integer :item
       t.string :table
       t.integer :month, :limit => 2
       t.integer :year, :limit => 5
       t.timestamps
    end
    add_index(:rails_admin_histories, [:item, :table, :month, :year], :name => 'index_rails_admin_histories' )
  end
  def self.down
    drop_table :rails_admin_histories
  end
end