From d60d1ca4c2c602b674ab9559a4a29907220d9c45 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 10 Dec 2022 12:49:18 -0500 Subject: Widened user ID field --- rails/db/migrate/20221210174554_widen_user_id_field.rb | 5 +++++ .../dummy/db/migrate/20221210174732_widen_user_id_field.lingo.rb | 6 ++++++ rails/test/dummy/db/schema.rb | 4 ++-- 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 rails/db/migrate/20221210174554_widen_user_id_field.rb create mode 100644 rails/test/dummy/db/migrate/20221210174732_widen_user_id_field.lingo.rb diff --git a/rails/db/migrate/20221210174554_widen_user_id_field.rb b/rails/db/migrate/20221210174554_widen_user_id_field.rb new file mode 100644 index 0000000..3291527 --- /dev/null +++ b/rails/db/migrate/20221210174554_widen_user_id_field.rb @@ -0,0 +1,5 @@ +class WidenUserIdField < ActiveRecord::Migration[7.0] + def change + change_column :lingo_scores, :user_id, :integer, limit: 8 + end +end diff --git a/rails/test/dummy/db/migrate/20221210174732_widen_user_id_field.lingo.rb b/rails/test/dummy/db/migrate/20221210174732_widen_user_id_field.lingo.rb new file mode 100644 index 0000000..7ccb934 --- /dev/null +++ b/rails/test/dummy/db/migrate/20221210174732_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/rails/test/dummy/db/schema.rb b/rails/test/dummy/db/schema.rb index 2f757d6..d59efc3 100644 --- a/rails/test/dummy/db/schema.rb +++ b/rails/test/dummy/db/schema.rb @@ -10,9 +10,9 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema[7.0].define(version: 2022_12_10_141051) do +ActiveRecord::Schema[7.0].define(version: 2022_12_10_174732) do 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