diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-31 09:33:42 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-31 09:33:42 -0600 |
| commit | dca1081753322aee8ad5ec16257bbfaae503d8ec (patch) | |
| tree | 54d47c73887ec3d65ac0628087adc195a02b4d3e /db/migrate | |
| parent | 1d5aca062e1acc78073de4781f090a1714d77634 (diff) | |
save the content type and filename of each new photo.
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20140531153018_add_content_type_to_photos.rb | 5 | ||||
| -rw-r--r-- | db/migrate/20140531153240_add_original_filename_to_photos.rb | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/db/migrate/20140531153018_add_content_type_to_photos.rb b/db/migrate/20140531153018_add_content_type_to_photos.rb new file mode 100644 index 00000000..a1bbd371 --- /dev/null +++ b/db/migrate/20140531153018_add_content_type_to_photos.rb @@ -0,0 +1,5 @@ +class AddContentTypeToPhotos < ActiveRecord::Migration + def change + add_column :photos, :content_type, :string + end +end diff --git a/db/migrate/20140531153240_add_original_filename_to_photos.rb b/db/migrate/20140531153240_add_original_filename_to_photos.rb new file mode 100644 index 00000000..60e059e3 --- /dev/null +++ b/db/migrate/20140531153240_add_original_filename_to_photos.rb @@ -0,0 +1,5 @@ +class AddOriginalFilenameToPhotos < ActiveRecord::Migration + def change + add_column :photos, :original_filename, :string + end +end |
