Merge 596797d7eb into 628211f0fc
This commit is contained in:
commit
f84f5e1c45
1 changed files with 8 additions and 0 deletions
8
db/migrate/20140328144310_add_youtube_to_media_type.rb
Normal file
8
db/migrate/20140328144310_add_youtube_to_media_type.rb
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class AddYoutubeToMediaType < ActiveRecord::Migration
|
||||
def up
|
||||
Event.where(:media_type => nil).each do |e|
|
||||
e.media_type = "YouTube"
|
||||
e.save(:validate => false)
|
||||
end
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue