FIX: Don't allow profile bios longer than 3k chars

This commit is contained in:
Robin Ward
2014-09-08 15:17:31 -04:00
parent f2cca140b4
commit 56eda5abf9
9 changed files with 36 additions and 7 deletions

View File

@@ -0,0 +1,6 @@
class TrimProfileLength < ActiveRecord::Migration
def change
# In case any profiles exceed 3000 chars
execute "UPDATE user_profiles SET bio_raw=LEFT(bio_raw, 3000)"
end
end