diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20221210175109_widen_user_id_field.lingo.rb | 6 | ||||
-rw-r--r-- | db/schema.rb | 4 |
2 files changed, 8 insertions, 2 deletions
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 @@ | |||
1 | # This migration comes from lingo (originally 20221210174554) | ||
2 | class WidenUserIdField < ActiveRecord::Migration[7.0] | ||
3 | def change | ||
4 | change_column :lingo_scores, :user_id, :integer, limit: 8 | ||
5 | end | ||
6 | 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 @@ | |||
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 | ||
13 | ActiveRecord::Schema[7.0].define(version: 2022_12_10_170549) do | 13 | ActiveRecord::Schema[7.0].define(version: 2022_12_10_175109) do |
14 | create_table "audits", force: :cascade do |t| | 14 | create_table "audits", force: :cascade do |t| |
15 | t.integer "auditable_id" | 15 | t.integer "auditable_id" |
16 | t.string "auditable_type" | 16 | t.string "auditable_type" |
@@ -69,7 +69,7 @@ ActiveRecord::Schema[7.0].define(version: 2022_12_10_170549) do | |||
69 | end | 69 | end |
70 | 70 | ||
71 | create_table "lingo_scores", force: :cascade do |t| | 71 | create_table "lingo_scores", force: :cascade do |t| |
72 | t.integer "user_id" | 72 | t.integer "user_id", limit: 8 |
73 | t.string "username" | 73 | t.string "username" |
74 | t.string "avatar_url" | 74 | t.string "avatar_url" |
75 | t.integer "score" | 75 | t.integer "score" |