Sha256: eaab47f1247b998ac306e908c90dd0cec0db100af8e0d6656e2148c5c0daf307

Contents?: true

Size: 718 Bytes

Versions: 10

Compression:

Stored size: 718 Bytes

Contents

class CookieRefTracking < ActiveRecord::Migration
  def up
    add_column :referer_trackings, :cookie_referer_url, :text
    add_column :referer_trackings, :cookie_first_url, :text
    add_column :referer_trackings, :cookie_time, :timestamp
    rename_column :referer_trackings, :first_url, :session_first_url
    rename_column :referer_trackings, :referer_url, :session_referer_url
  end

  def down
    remove_column :referer_trackings, :cookie_first_url
    remove_column :referer_trackings, :cookie_referer_url
    remove_column :referer_trackings, :cookie_time
    rename_column :referer_trackings, :session_first_url, :first_url
    rename_column :referer_trackings, :session_referer_url, :referer_url
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
referer_tracking-4.3.0 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-4.2.0 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-4.1.0 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-4.0.1 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-4.0.0 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-3.1.0 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-3.0.4 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-3.0.3 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-3.0.2 db/migrate/20131124175848_cookie_ref_tracking.rb
referer_tracking-3.0.0 db/migrate/20131124175848_cookie_ref_tracking.rb