mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
store ip address and current user with incoming links
make links long an readable in share dialog
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AllowNullsInIncomingLinks < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :incoming_links, :referer, :string, limit:1000, null: true
|
||||
change_column :incoming_links, :domain, :string, limit:100, null: true
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class AddIncomingIpCurrentUserIdToIncomingLinks < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :incoming_links, :ip_address, :inet
|
||||
add_column :incoming_links, :current_user_id, :int
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user