mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-24 10:11:16 +00:00
fixed parsed signatures might be bigger than allowed by database
This commit is contained in:
parent
925001b73d
commit
df5c6b1a7a
3 changed files with 20 additions and 3 deletions
|
@ -26,7 +26,7 @@ module Extra
|
|||
end
|
||||
|
||||
def bbcode_to_html(text)
|
||||
Sanitize.clean(text.to_s).bbcode_to_html.gsub(/\r/, "<br>").html_safe
|
||||
Sanitize.clean(text.to_s).bbcode_to_html.gsub(/\n|\r\n/, "<br>").html_safe
|
||||
end
|
||||
|
||||
def move_up(scope, column = "position")
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
class ChangeTypeOfProfileParsedSignature < ActiveRecord::Migration
|
||||
def up
|
||||
change_column :profiles, :signature_parsed, :text
|
||||
end
|
||||
end
|
16
db/schema.rb
16
db/schema.rb
|
@ -11,7 +11,7 @@
|
|||
#
|
||||
# It's strongly recommended to check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(:version => 20170304191254) do
|
||||
ActiveRecord::Schema.define(:version => 20170612182124) do
|
||||
|
||||
create_table "admin_requests", :force => true do |t|
|
||||
t.string "addr"
|
||||
|
@ -432,6 +432,18 @@ ActiveRecord::Schema.define(:version => 20170304191254) do
|
|||
t.integer "category_id"
|
||||
end
|
||||
|
||||
create_table "match_proposals", :force => true do |t|
|
||||
t.integer "match_id"
|
||||
t.integer "team_id"
|
||||
t.integer "status"
|
||||
t.datetime "proposed_time"
|
||||
t.datetime "created_at", :null => false
|
||||
t.datetime "updated_at", :null => false
|
||||
end
|
||||
|
||||
add_index "match_proposals", ["match_id"], :name => "index_match_proposals_on_match_id"
|
||||
add_index "match_proposals", ["team_id"], :name => "index_match_proposals_on_team_id"
|
||||
|
||||
create_table "matchers", :force => true do |t|
|
||||
t.integer "match_id", :null => false
|
||||
t.integer "user_id", :null => false
|
||||
|
@ -637,7 +649,7 @@ ActiveRecord::Schema.define(:version => 20170304191254) do
|
|||
t.boolean "notify_challenge", :default => true, :null => false
|
||||
t.string "steam_profile"
|
||||
t.string "achievements_parsed"
|
||||
t.string "signature_parsed"
|
||||
t.text "signature_parsed"
|
||||
t.string "stream"
|
||||
t.string "layout"
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue