Add venue_photos model and venue_photos admin controller in order to add more images to Venues and allow to delete it.

Show the additional photos in splash. Added fancybox gem for zoom when click on the additional photo.

fix #777
This commit is contained in:
David Sedeño 2016-02-13 17:12:03 +01:00
parent 2034c0f965
commit 7c0cd30dda
13 changed files with 85 additions and 7 deletions

View file

@ -0,0 +1,13 @@
class CreateVenuePhotos < ActiveRecord::Migration
def change
create_table :venue_photos do |t|
t.integer :venue_id
t.string :photo_file_name
t.string :photo_content_type
t.integer :photo_file_size
t.datetime :photo_updated_at
t.timestamps null: false
end
end
end