modify attachments

This commit is contained in:
Andreas Stephanides
2015-02-11 20:53:25 +01:00
parent 5439d33a3c
commit 29a35f76d8
9 changed files with 52 additions and 17 deletions

View File

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

View File

@@ -0,0 +1,5 @@
class AddFlagsToAttachment < ActiveRecord::Migration
def change
add_column :attachments, :flag_titlepic, :boolean
end
end