tracks visits from different email templates

This commit is contained in:
rgarcia
2015-10-20 16:40:30 +02:00
parent 87aa44de5a
commit c71bf4c876
7 changed files with 73 additions and 1 deletions

View File

@@ -0,0 +1,10 @@
class CreateCampaigns < ActiveRecord::Migration
def change
create_table :campaigns do |t|
t.string :name
t.string :track_id
t.timestamps null: false
end
end
end

View File

@@ -12,7 +12,6 @@
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20151021113348) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -48,6 +47,13 @@ ActiveRecord::Schema.define(version: 20151021113348) do
add_index "ahoy_events", ["user_id"], name: "index_ahoy_events_on_user_id", using: :btree
add_index "ahoy_events", ["visit_id"], name: "index_ahoy_events_on_visit_id", using: :btree
create_table "campaigns", force: :cascade do |t|
t.string "name"
t.string "track_id"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "comments", force: :cascade do |t|
t.integer "commentable_id"
t.string "commentable_type"