Commit graph

53 commits

Author SHA1 Message Date
5d0e4a520e Allow hiding and un-hiding of screenshot by moderators 2021-03-10 01:04:37 +01:00
2fef9c7043 Audit logging improved. References users, screenshots, packages 2021-03-03 23:21:24 +01:00
7a3b65fe50 Authorisation management using CanCanCan added 2021-02-28 21:36:46 +01:00
3f2928e737 Recreate ipaddress field as PostgreSQL's inet type 2021-02-22 11:31:41 +01:00
16b14b1650 Extend uploaderip field to cope with IPv6 addresses 2021-02-22 11:25:13 +01:00
bc84a022fe Fixed database column for Shrinerb 2020-11-12 19:36:30 +01:00
c4f5741b0c Migration to Shrine attachment handling 2020-11-01 15:07:16 +01:00
7ac69a1d8a Rails update. Fancybox update. Migrations from Paperclip. 2020-10-19 18:49:47 +02:00
cc080191fb Added explicit Rails version to migrations as needed for Rails 6 2020-08-16 19:22:47 +02:00
8adf682a0b Migrations and helpers to move from Paperclip to ActiveStorage
To migrate the application as of April 2020:

• leave models/screenshot.rb with “has_attached_file”
• bundle exec rake db:migrate
• bin/move_paperclip_to_activestorage
• set models/screenshot.rb to “has_one_attached”
2020-04-20 20:24:59 +02:00
186a7d91c9 Upgrade Rails 5.2 -> 6.0 2020-04-14 02:26:43 +02:00
d130f68172 Upgrade from Rails 5.0 to 5.2 2020-04-14 02:16:25 +02:00
020a864736 Added welcome and profile actions to the my controller 2017-04-23 13:37:48 +02:00
63634f00df Allow same email address with different SSO providers 2017-04-06 18:32:20 +02:00
9a5ddb5e13 Experimental authentication for Launchpad and Google added 2017-04-06 12:56:06 +02:00
464fc0de95 Renamed realname to name in users table
We do not necessarily need the real name. A nickname would be
sufficient.
2017-04-05 16:42:10 +02:00
3af455103e New database schema after db:migrate 2016-10-29 17:41:56 +02:00
c0dbfd9038 Updated schema 2016-08-12 17:06:52 +02:00
e2671d2545 Text search now properly weighted and ranked
Default order by 'name' removed so that ranking can actually work.
2016-08-12 16:40:12 +02:00
5227c8d1fa Setting default visit counter to 0 2016-08-10 18:59:33 +02:00
5df0a96b1d Column 'visits' added to packages
Preparation for processing web server access logs to count visits of
packages.
2016-08-10 08:45:25 +02:00
9024833921 Enlarged screenshot description field to 80 chars 2016-07-15 20:10:34 +02:00
59e5ac8eca Schema fixed 2016-05-16 23:48:05 +02:00
79d16b1ce0 Approved field is now false by default 2016-04-08 16:42:46 +02:00
3eeb9a63dc Using created_at instead of legacy 'uploaddatetime' field 2016-03-04 15:41:50 +01:00
16540c64f9 Removing timestamp creation - fields already created earlier 2016-03-04 10:25:50 +01:00
b1bd655998 Fixed database schema and migrations for Devise 2016-03-02 15:30:32 +01:00
a7c8f08972 Migrations cleaned up 2016-03-01 17:57:32 +01:00
d376f2e0d1 Cleanup 2016-03-01 17:48:09 +01:00
9853af43de Enable lockable feature of Devise to lock out users after brute force attempts 2015-07-15 17:30:47 +02:00
35eb83448e Added "devise" for authentication. 2015-07-15 17:06:32 +02:00
e6a0f15340 Removed "authlogic" completely. Let's try "devise". 2015-07-15 17:05:56 +02:00
737ff62cfc Trying to get authlogic running 2015-07-13 18:42:36 +02:00
56f38bcdcf Make sure that a package has a valid name
If this contraint had been there I would have found a bug
in the import_debian Rake task much sooner.
2015-06-28 15:08:16 +02:00
3b056a2db8 Added authlogic and user schema 2015-06-15 13:04:29 +02:00
239a4758c0 Dropping old "admins" table in favor of new User model. 2015-05-03 15:08:23 +02:00
5c31a94aef Devise removed. Broke tests. Trying another auth gem. 2015-05-03 13:31:13 +02:00
a2acb87cfc Devise schema removed 2015-05-03 13:30:07 +02:00
3988c7ddf3 Devise authentication added - no registration though 2015-05-02 16:16:29 +02:00
bdd2753c96 Added logs table to database schema 2015-04-27 00:18:09 +02:00
ac3d52a66e Adding Log model for database-based log messages 2015-04-27 00:15:55 +02:00
f741112818 Added migration to make package.long_description a longer text field 2015-04-23 17:19:11 +02:00
4a0a3c3123 Added Paperclip migrations 2015-01-04 14:19:27 +01:00
7aca36e46b Added Paperclip attachment handler 2015-01-04 14:19:19 +01:00
d895aa2d1d Migration added that fixes full-text search 2014-12-31 17:32:53 +01:00
15411e9c61 Schema updated. (Reason unknown.) 2014-12-30 16:56:55 +01:00
b70d2e6701 Schema updated after dropping debtags tables 2014-12-07 22:47:49 +01:00
8b9b40fdee Added migration to remove debtags tables 2014-12-07 22:31:44 +01:00
110cd16d6e Adding database index on full-text search for better performance. 2013-08-08 22:32:41 +02:00
f9e920aea5 Added migration to add timestamp column for screenshots 2013-08-06 22:37:17 +02:00