6deadc731a
just tagging something "video" doesn't make it appropriate for submission, it still requires a categorization tag
16 lines
280 B
Ruby
16 lines
280 B
Ruby
class AddTagMediaTypes < ActiveRecord::Migration
|
|
def up
|
|
add_column :tags, :is_media, :boolean, :default => false
|
|
|
|
[ "pdf", "video" ].each do |t|
|
|
if tag = Tag.find_by_tag(t)
|
|
tag.is_media = true
|
|
tag.save
|
|
end
|
|
end
|
|
end
|
|
|
|
def down
|
|
end
|
|
end
|