Sha256: 6c2bbbc7a4d0f02dd7d83c7b7b89bbc0fc7c39dd105cfeaabc586f9efe00cdc8

Contents?: true

Size: 552 Bytes

Versions: 3

Compression:

Stored size: 552 Bytes

Contents

class CreateSojournRequests < ActiveRecord::Migration
  def change
    create_table :sojourn_requests do |t|
      t.references :sojourn_campaign
      t.references :sojourn_browser
      t.string :host, limit: 2048
      t.string :path, limit: 2048
      t.string :method
      t.string :controller
      t.string :action
      t.string :ip_address
      t.text :params
      t.text :referer
      t.timestamp :created_at
    end
    add_index :sojourn_requests, [:sojourn_campaign_id]
    add_index :sojourn_requests, [:sojourn_browser_id]
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sojourn-1.0.0.pre2 lib/generators/sojourn/templates/create_sojourn_requests.rb
sojourn-1.0.0.pre lib/generators/sojourn/templates/create_sojourn_requests.rb
sojourn-0.0.7 lib/generators/sojourn/templates/create_sojourn_requests.rb