Sha256: 1c27a28a9ca7b43d85c1985c71b3d389ea9bf657fb6f89f867d603510d57049d
Contents?: true
Size: 913 Bytes
Versions: 5
Compression:
Stored size: 913 Bytes
Contents
class CreateFamilyGalleryPictures < ActiveRecord::Migration def up create_table :family_gallery_pictures do |t| t.integer :user_owner_id t.integer :user_uploaded_id t.datetime :taken_at t.integer :width t.integer :height t.decimal :latitude, precision: 10, scale: 8 t.decimal :longitude, precision: 10, scale: 8 t.timestamps end add_index :family_gallery_pictures, :user_owner_id add_index :family_gallery_pictures, :user_uploaded_id add_index :family_gallery_pictures, :taken_at add_index :family_gallery_pictures, :latitude add_index :family_gallery_pictures, :longitude add_attachment :family_gallery_pictures, :image FamilyGallery::Picture.create_translation_table! title: :string, description: :text end def down drop_table :family_gallery_pictures FamilyGallery::Picture.drop_translation_table! end end
Version data entries
5 entries across 5 versions & 1 rubygems