Commit graph

22 commits

Author SHA1 Message Date
78b8f594af Enforce eager loading of backreferencing to avoid wasteful SQL queries 2013-08-07 21:37:14 +02:00
20a627a270 meta_request gem added for Chrome debugging 2013-08-07 20:38:49 +02:00
76d19f7e78 Unsuccessful attempt to properly eager load screenshots.
Currently the virtual attribute "image_url" in the screenshots model
apparently runs one SQL query each to get the packages data.
2013-08-07 00:18:20 +02:00
88dfb33721 Return results for packages only with screenshots.
Currently the packages controller is not working well. The JOIN is not
the best way apparently as the 'description' column exists for both the
"packages" and the "screenshots" table. So another way to query for
the data needs to be found.
2013-08-06 23:36:48 +02:00
f9e920aea5 Added migration to add timestamp column for screenshots 2013-08-06 22:37:17 +02:00
6454f994a9 Update gitignore to avoid checking in test screenshots 2013-08-06 22:36:16 +02:00
481476a4a8 Added automatically generated tests. 2013-08-06 22:36:04 +02:00
b62c799ee8 Added image_url method for Screenshot model 2013-08-06 22:35:42 +02:00
5559fbecd3 Added one-to-many relation between packages and screenshots 2013-08-06 22:35:05 +02:00
31569ddd45 Improved data search query to match for results of any case 2013-08-06 22:34:48 +02:00
355b1e08f8 Fixed display of screenshots if count>0 2013-08-06 22:34:13 +02:00
3c03445f45 Added 'admins' database table 2013-08-06 22:33:03 +02:00
c096d461b9 Added debugging gem 2013-08-06 22:32:38 +02:00
f26f8a425b Moved default page to "packages" controller.
Using a partial template to render search results.

Show packages by default even without a query.
2013-07-27 13:12:29 +02:00
acd47f66d7 Fulltext search for packages works 2013-07-27 01:48:01 +02:00
8df03296e9 Schema and basic migraton for "package" table added 2013-07-27 01:23:51 +02:00
d9573fd208 PostgreSQL support added 2013-07-27 01:23:37 +02:00
c2a695aec0 Packages controller added 2013-07-27 01:23:28 +02:00
f28c637d10 Welcome controller added
Can be used for main index, about page etc.
2013-07-27 01:23:08 +02:00
741bf5d4e4 Development database on 'torf' configured 2013-07-27 01:21:44 +02:00
5225483a7d Routes from debshots 1.x documented 2013-07-27 01:21:28 +02:00
3af24f56dc Blank rails 4.0 project started 2013-07-27 00:19:29 +02:00