Skip to content

Commit

Permalink
switch to integer foreign keys
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewroth authored and frett committed Mar 29, 2022
1 parent bf2e63d commit fba04d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions db/migrate/20211201161437_create_user_counter_values.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class CreateUserCounterValues < ActiveRecord::Migration[6.0]
def change
create_table :user_counter_values do |t|
t.string :user_id
t.string :user_counter_id
t.integer :user_id
t.integer :user_counter_id
t.string :value

t.timestamps
Expand Down
4 changes: 2 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@
end

create_table "user_counter_values", force: :cascade do |t|
t.string "user_id"
t.string "user_counter_id"
t.integer "user_id"
t.integer "user_counter_id"
t.string "value"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
Expand Down

0 comments on commit fba04d8

Please sign in to comment.