2019-05-02 18:17:27 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-08-31 00:06:56 -04:00
|
|
|
class TrimProfileLength < ActiveRecord::Migration[4.2]
|
2014-09-08 15:17:31 -04:00
|
|
|
def change
|
|
|
|
# In case any profiles exceed 3000 chars
|
|
|
|
execute "UPDATE user_profiles SET bio_raw=LEFT(bio_raw, 3000)"
|
|
|
|
end
|
|
|
|
end
|