📈 GH Trending Explorer
Sponsored by Sorted Solution
⚠ Updated 2026-11-29 10:03 UTC 🎲 Surprise me

Search: dim · Language: Ruby · clear

igorkasyanchuk / active_storage_validations

Do it like => validates :photos, attached: true, content_type: ['image/png', 'image/jpg', 'image/jpeg'], size: { less_than: 500.kilobytes }, limit: { min: 1, max: 3 }, aspect_ratio: :landscape, dimension: { width: { in: 800..1600 }

▲ 0/7d ★ 1.2k Ruby 1d ago
fatkodima / online_migrations

Catch unsafe PostgreSQL migrations in development and run them easier in production (code helpers for table/column renaming, changing column type, adding columns with default, background migrations, etc).