Skip to content

Commit

Permalink
Tipo de Mídia
Browse files Browse the repository at this point in the history
  • Loading branch information
andrefaria committed Mar 28, 2012
1 parent 5ec9823 commit f637fe3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
MediaType.find_or_create_by_name('Livro', :loan_days => 0,) { |m| m.id = 1 }
MediaType.find_or_create_by_name('Revista', :loan_days => 0) { |m| m.id = 2 }
MediaType.find_or_create_by_name('DVD', :loan_days => 0) { |m| m.id = 3 }
MediaType.find_or_create_by_name('Monografia', :loan_days => 0) { |m| m.id = 4 }
Media.where('media_type_id is null').update_all(:media_type_id => 1)

#Media Statuses
Expand Down

0 comments on commit f637fe3

Please sign in to comment.