metamaps--metamaps/db/migrate/20170122201451_create_attachments.rb

13 lines
294 B
Ruby
Raw Normal View History

class CreateAttachments < ActiveRecord::Migration[5.0]
def change
create_table :attachments do |t|
t.references :attachable, polymorphic: true
t.attachment :file
t.timestamps
end
remove_attachment :topics, :image
remove_attachment :topics, :audio
end
end