Files
fetsite/db/migrate/20150211180445_add_parent_to_attachment.rb
Andreas Stephanides 29a35f76d8 modify attachments
2015-02-11 20:53:25 +01:00

8 lines
184 B
Ruby

class AddParentToAttachment < ActiveRecord::Migration
def change
change_table :attachments do |t|
t.references :parent, :polymorphic=>{:default=>'Thema'}
end
end
end