Sha256: 75af5736fd454604c0a9ea567df50696c870d3c7ea0c11f58e225bcefd2c2de6

Contents?: true

Size: 439 Bytes

Versions: 11

Compression:

Stored size: 439 Bytes

Contents

class CreateMyAdminLogs < ActiveRecord::Migration
  def self.up
    create_table :my_admin_logs do |t|
      t.integer :user_id, :null => false
      t.string :object, :null => false
      t.string :action, :null => false
      t.string :model, :null => false
      t.string :application, :null => false

      t.timestamps
    end
    
    add_index :my_admin_logs, :user_id
  end

  def self.down
    drop_table :my_admin_logs
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
my_admin-0.0.12 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.11 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.10 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.9 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.8 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.7 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.6 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.5 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.4 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.3 lib/generators/my_admin/install/templates/migrations/logs.rb
my_admin-0.0.2 lib/generators/my_admin/install/templates/migrations/logs.rb