class CreatePhotos
Public Class Methods
down()
click to toggle source
# File lib/generators/dust_album/templates/photos_migration.rb, line 17 def self.down drop_table :photos end
up()
click to toggle source
# File lib/generators/dust_album/templates/photos_migration.rb, line 2 def self.up create_table :photos do |t| t.string :title t.text :desc t.date :date_shot t.string :location t.integer :album_id t.string :file_file_name t.string :file_content_type t.integer :file_file_size t.datetime :file_updated_at t.timestamps end end