Fix column limits

Has set a limit of 0, which makes little sense...
This commit is contained in:
Henne Vogelsang 2024-11-22 13:30:45 +01:00
parent 299250a574
commit 928e590a47
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
2 changed files with 11 additions and 2 deletions

View file

@ -0,0 +1,9 @@
class ChangeCommentSubjectLimit < ActiveRecord::Migration[7.0]
def up
change_column :comments, :subject, :string, limit: 255
end
def down
raise ActiveRecord::IrreversibleMigration.new('Cannot reverse migration.')
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2018_12_29_233813) do
ActiveRecord::Schema[7.0].define(version: 2024_11_21_114727) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -62,7 +62,7 @@ ActiveRecord::Schema[7.0].define(version: 2018_12_29_233813) do
t.integer "user_id"
t.datetime "created_at"
t.datetime "updated_at"
t.string "subject"
t.string "subject", limit: 255
t.integer "parent_id"
t.integer "lft"
t.integer "rgt"