diff --git a/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb b/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb new file mode 100644 index 0000000000000000000000000000000000000000..fee56386d833200d0c3faa7ff8a379d817bdbca7 --- /dev/null +++ b/db/migrate/20170503134230_add_attachment_avatar_to_institutions.rb @@ -0,0 +1,11 @@ +class AddAttachmentAvatarToInstitutions < ActiveRecord::Migration + def self.up + change_table :institutions do |t| + t.attachment :avatar + end + end + + def self.down + remove_attachment :institutions, :avatar + end +end