Class: CreatePhotos
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePhotos
- Defined in:
- lib/generators/dust_album/templates/photos_migration.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
17 18 19 |
# File 'lib/generators/dust_album/templates/photos_migration.rb', line 17 def self.down drop_table :photos end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# 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. end end |