From 27dc9a89915e7f4a043f1972dd34a72584445a81 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 12:51:27 -0500 Subject: Widened Lingo user ID field --- Gemfile.lock | 2 +- db/migrate/20221210175109_widen_user_id_field.lingo.rb | 6 ++++++ db/schema.rb | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20221210175109_widen_user_id_field.lingo.rb diff --git a/Gemfile.lock b/Gemfile.lock index 6367d9e..eebe655 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/hatkirby/lingo.git - revision: 787745956f13bb63c596ed80a53b386708b56508 + revision: d60d1ca4c2c602b674ab9559a4a29907220d9c45 branch: main glob: rails/*.gemspec specs: diff --git a/db/migrate/20221210175109_widen_user_id_field.lingo.rb b/db/migrate/20221210175109_widen_user_id_field.lingo.rb new file mode 100644 index 0000000..7ccb934 --- /dev/null +++ b/db/migrate/20221210175109_widen_user_id_field.lingo.rb @@ -0,0 +1,6 @@ +# This migration comes from lingo (originally 20221210174554) +class WidenUserIdField < ActiveRecord::Migration[7.0] + def change + change_column :lingo_scores, :user_id, :integer, limit: 8 + end +end diff --git a/db/schema.rb b/db/schema.rb index 0b14b24..5b61408 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_12_10_170549) do +ActiveRecord::Schema[7.0].define(version: 2022_12_10_175109) do create_table "audits", force: :cascade do |t| t.integer "auditable_id" t.string "auditable_type" @@ -69,7 +69,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_10_170549) do end create_table "lingo_scores", force: :cascade do |t| - t.integer "user_id" + t.integer "user_id", limit: 8 t.string "username" t.string "avatar_url" t.integer "score" -- cgit 1.4.1