Sha256: 0ab99306fcdd5527cb8201ba6917f48f1ec437f07f97efabc28ddb3f689d2332

Contents?: true

Size: 524 Bytes

Versions: 5

Compression:

Stored size: 524 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration
  def change
    create_table :notable_requests do |t|
      t.string :note_type
      t.text :note
      t.integer :user_id
      t.string :user_type
      t.text :action
      t.integer :status
      t.text :url
      t.string :request_id
      t.string :ip
      t.text :user_agent
      t.text :referrer
      t.text :params
      t.decimal :request_time
      t.timestamp :created_at
    end

    add_index :notable_requests, [:user_id, :user_type]
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notable-0.2.0 lib/generators/notable/templates/create_requests.rb
notable-0.1.0 lib/generators/notable/templates/create_requests.rb
notable-0.0.3 lib/generators/notable/templates/create_requests.rb
notable-0.0.2 lib/generators/notable/templates/create_requests.rb
notable-0.0.1 lib/generators/notable/templates/create_requests.rb