summary refs log tree commit diff stats
path: root/rails
diff options
context:
space:
mode:
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"