summary refs log tree commit diff stats
path: root/rails
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 12:49:18 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2022-12-10 12:49:18 -0500
commitd60d1ca4c2c602b674ab9559a4a29907220d9c45 (patch)
tree3c99b7413cbeb369dd5c24d5e0ecfeb91eaaf63b /rails
parent787745956f13bb63c596ed80a53b386708b56508 (diff)
downloadlingo-d60d1ca4c2c602b674ab9559a4a29907220d9c45.tar.gz
lingo-d60d1ca4c2c602b674ab9559a4a29907220d9c45.tar.bz2
lingo-d60d1ca4c2c602b674ab9559a4a29907220d9c45.zip
Widened user ID field
Diffstat (limited to 'rails')
-rw-r--r--rails/db/migrate/20221210174554_widen_user_id_field.rb5
-rw-r--r--rails/test/dummy/db/migrate/20221210174732_widen_user_id_field.lingo.rb6
-rw-r--r--rails/test/dummy/db/schema.rb4
3 files changed, 13 insertions, 2 deletions
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 @@
1class WidenUserIdField < ActiveRecord::Migration[7.0]
2 def change
3 change_column :lingo_scores, :user_id, :integer, limit: 8
4 end
5end
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 @@
1# This migration comes from lingo (originally 20221210174554)
2class WidenUserIdField < ActiveRecord::Migration[7.0]
3 def change
4 change_column :lingo_scores, :user_id, :integer, limit: 8
5 end
6end
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 @@
10# 10#
11# It's strongly recommended that you check this file into your version control system. 11# It's strongly recommended that you check this file into your version control system.
12 12
13ActiveRecord::Schema[7.0].define(version: 2022_12_10_141051) do 13ActiveRecord::Schema[7.0].define(version: 2022_12_10_174732) do
14 create_table "lingo_scores", force: :cascade do |t| 14 create_table "lingo_scores", force: :cascade do |t|
15 t.integer "user_id" 15 t.integer "user_id", limit: 8
16 t.string "username" 16 t.string "username"
17 t.string "avatar_url" 17 t.string "avatar_url"
18 t.integer "score" 18 t.integer "score"