Skip to content

Commit

Permalink
replace size: :medium in schema.rb
Browse files Browse the repository at this point in the history
replaces with limit of 16M which is equivalent to mysqls mediumtext
  • Loading branch information
stuzart committed Dec 18, 2024
1 parent be84173 commit 72bfb23
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ rails_best_practices_output.html

db/*.sqlite3
db/*.sqlite3-journal
db/*.sqlite3-shm
db/*.sqlite3-wal
config/database.yml
config/initializers/seek_local.rb
config/environment_local.rb
Expand Down
8 changes: 4 additions & 4 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
t.datetime "updated_at"
t.string "http_referer"
t.text "user_agent"
t.text "data", size: :medium
t.text "data", limit: 16777215
t.string "controller_name"
t.index ["action"], name: "act_logs_action_index"
t.index ["activity_loggable_type", "activity_loggable_id"], name: "act_logs_act_loggable_index"
Expand Down Expand Up @@ -821,7 +821,7 @@
t.text "root_path"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.text "resource_attributes", size: :medium
t.text "resource_attributes", limit: 16777215
t.bigint "git_repository_id"
t.integer "visibility"
t.string "doi"
Expand Down Expand Up @@ -1881,7 +1881,7 @@

create_table "sessions", id: :integer, force: :cascade do |t|
t.string "session_id", null: false
t.text "data", size: :medium
t.text "data", limit: 16777215
t.datetime "created_at"
t.datetime "updated_at"
t.index ["session_id"], name: "index_sessions_on_session_id"
Expand Down Expand Up @@ -2224,7 +2224,7 @@
create_table "text_values", id: :integer, force: :cascade do |t|
t.integer "version"
t.integer "version_creator_id"
t.text "text", size: :medium, null: false
t.text "text", limit: 16777215, null: false
t.datetime "created_at"
t.datetime "updated_at"
end
Expand Down

0 comments on commit 72bfb23

Please sign in to comment.