forked from bofh/fetsite
modify attachments
This commit is contained in:
7
db/migrate/20150211180445_add_parent_to_attachment.rb
Normal file
7
db/migrate/20150211180445_add_parent_to_attachment.rb
Normal 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
|
||||
5
db/migrate/20150211180912_add_flags_to_attachment.rb
Normal file
5
db/migrate/20150211180912_add_flags_to_attachment.rb
Normal file
@@ -0,0 +1,5 @@
|
||||
class AddFlagsToAttachment < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :attachments, :flag_titlepic, :boolean
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user