Sha256: 612dcb2835d7d2436db37b2b5528ec8c8bf5a47282de4a44f61b02df3c9cb236

Contents?: true

Size: 548 Bytes

Versions: 2

Compression:

Stored size: 548 Bytes

Contents

class <%= migration_class_name %> < ActiveRecord::Migration<%= migration_version %>
  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

2 entries across 2 versions & 1 rubygems

Version Path
notable-0.2.2 lib/generators/notable/templates/create_requests.rb
notable-0.2.1 lib/generators/notable/templates/create_requests.rb