discourse/app/models
Dan Johnson 2e478d8537 TopicLinkClick: convert 'ip' (bigint) -> 'ip_address' (inet)
When accessed over IPv6, the ip address of the user is a 128-bit number,
too big for PostgreSQL's bigint data type. Since PostgresSQL has the
built-in inet type, which handles both IPv4 and IPv6 addresses, we
should use that instead. Where this is done elsewhere in the codebase,
the column is called ip_address, so we should follow that convention as
well.

This migration uses a SQL command to populate the new field from the old
one, so as not to rely on the TopicLinkClick model class, which should
keep the migration from failing if that class is modified in the future.
2013-06-25 19:41:19 -04:00
..
admin_dashboard_data.rb Use "command -v" to test for convert instead of "which -s" 2013-06-20 21:42:18 -04:00
admin_log.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
cas_user_info.rb annotate models 2013-06-17 02:49:34 +02:00
category.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
category_featured_topic.rb Categories page should not show invisible topics 2013-06-20 16:07:53 -04:00
category_featured_user.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
category_group.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
category_list.rb Don't show invisible topics in uncategorized on categories page 2013-06-21 11:36:00 -04:00
category_search_data.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
discourse_version_check.rb Version check gets how many versions behind you are, and shows judgemental faces on the dashboard 2013-03-05 18:15:33 -05:00
draft.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
draft_sequence.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
email_log.rb flagging workflow changes per http://meta.discourse.org/t/we-need-an-archive-flag-notification-button/7450 2013-06-20 17:42:15 +10:00
email_token.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
error_log.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
facebook_user_info.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
github_user_info.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
group.rb bad locale files could lead to broken automatic groups 2013-06-23 14:44:16 +10:00
group_user.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
hot_topic.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
incoming_link.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
incoming_links_report.rb Some minor cleanups 2013-06-10 10:38:10 +05:30
invite.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
invite_redeemer.rb Extract InviteRedeemer from Invite 2013-05-30 11:49:11 -04:00
invited_list.rb Fix all the trailing whitespace 2013-02-07 16:45:24 +01:00
locale_site_setting.rb values is a much more consistent name than all_values ... we use {}.values not {}.all_values 2013-06-23 15:07:49 +10:00
notification.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
optimized_image.rb make sure we also delete optimized images 2013-06-21 09:34:02 +02:00
post.rb Email parsing uses Traditional Markdown Linebreaks by default. Added JS tests for line breaks. 2013-06-21 11:37:26 -04:00
post_action.rb Correct spelling of suppress 2013-06-20 23:44:27 -05:00
post_action_type.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
post_alert_observer.rb Don't send notifications for moderator action posts 2013-05-23 11:42:52 -04:00
post_analyzer.rb Remove unused var. 2013-06-20 20:58:05 +05:30
post_mover.rb Extract PostMover from Topic into its own class 2013-05-26 18:42:04 -07:00
post_reply.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
post_search_data.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
post_timing.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
post_upload.rb annotate models 2013-06-17 02:49:34 +02:00
report.rb Fix bookmarks admin dashboard counts to include bookmarks that were deleted 2013-04-30 12:52:12 -04:00
s3_region_site_setting.rb values is a much more consistent name than all_values ... we use {}.values not {}.all_values 2013-06-23 15:07:49 +10:00
search_observer.rb Search Refactor: Remove some manual SQL, make search data tables more idomatic Rails/AR 2013-05-22 16:31:13 -04:00
site.rb speed up startup (avoid loading some gems on startup) 2013-05-13 18:04:03 +10:00
site_content.rb Allow customization of 'login required' message 2013-06-04 18:53:36 -07:00
site_content_type.rb Replace MultisiteI18n hack with SiteContent and admin editing. 2013-04-05 16:48:15 -04:00
site_customization.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
site_setting.rb basic requires that 20 topics are entered thanks @novemberkilo 2013-06-23 14:32:37 +10:00
topic.rb fix horribly broken invite code, could lead to inviting the wrong person to a conversation 2013-06-19 10:31:19 +10:00
topic_allowed_group.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
topic_allowed_user.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
topic_invite.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
topic_link.rb Remove topic links when a post is deleted 2013-06-13 13:41:54 -04:00
topic_link_click.rb TopicLinkClick: convert 'ip' (bigint) -> 'ip_address' (inet) 2013-06-25 19:41:19 -04:00
topic_list.rb remove dead uncalled code 2013-06-23 15:28:38 +10:00
topic_notifier.rb extract TopicNotifier class from topic 2013-05-24 13:36:33 -07:00
topic_poster.rb topic_poster.rb: Fix formatting of the attributes return value 2013-03-23 19:09:01 +05:30
topic_posters_summary.rb Fix TopicPostersSummary when a suggested topic includes a user who has been deleted 2013-05-27 14:12:15 -04:00
topic_status_update.rb Store when a topic was first set to auto-close and report that amount of time when it closes. And do some refactoring. 2013-06-06 17:04:21 -04:00
topic_tracking_state.rb read state is now published 2013-05-30 16:49:58 +10:00
topic_user.rb read state is now published 2013-05-30 16:49:58 +10:00
twitter_user_info.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
upload.rb FIX: lightbox wasn't working when using s3 upload 2013-06-22 13:38:42 +02:00
user.rb adding a missing User association 2013-06-24 17:08:49 +03:00
user_action.rb hidden and deleted state in user stream 2013-06-12 11:14:08 +10:00
user_action_observer.rb :s/POST/REPLY/g 2013-05-01 10:52:31 +10:00
user_email_observer.rb introduce Enum 2013-03-01 21:16:36 +03:00
user_open_id.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
user_search.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
user_search_data.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00
user_visit.rb Enabled strong_parameters across all models/controllers. 2013-06-06 00:30:59 -07:00
username_validator.rb minor cleanup, using AR querying DSL over raw SQL in some places 2013-02-28 21:54:12 +03:00
view.rb moved comments to the bottom, they are way less intrusive there 2013-05-24 12:48:32 +10:00