Change visit_id type of ahoy_events to integer

The id column of the visits table is of type integer
This commit is contained in:
AEtherC0r3
2017-11-18 13:41:11 +02:00
committed by Stella Rouzi
parent c21c9af60f
commit 364be55412
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class ChangeVisitIdTypeOfAhoyEventsToInteger < ActiveRecord::Migration[5.0]
def change
change_column :ahoy_events, :visit_id, :integer, limit: nil
end
end

View File

@@ -10,10 +10,10 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 20170924190528) do
ActiveRecord::Schema.define(version: 20171118113113) do
create_table "ahoy_events", force: :cascade do |t|
t.binary "visit_id", limit: 16
t.integer "visit_id"
t.integer "user_id"
t.string "name"
t.text "properties"