Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 1.82 KB | None | 0 0
  1.  
  2. Comment.new(
  3.   :username => "Juliana",
  4.   :email => "juuuu@tv.br",
  5.   :body => "A matematica é simples patrocinador espanhol, piloto espanhol, escuderia italiana e empregado brasileiro.Vamos boicotar o Grande Premio Brasil, quem quiser lançar a campanha eu tô dentro.",
  6.   :status_id => Status::UNDER_APPROVAL,
  7.   :commentable_id => Article.last.id,
  8.   :commentable_type => "Article"
  9. ).save
  10.  
  11. Comment.new(
  12.   :username => "Roberto",
  13.   :email => "roberto@tv.br",
  14.   :body => "Felipe Massa/Ferrari chamou milhões de Brasileiros que estavam torcendo por ele, de idiotas! Alonso com o seu teatrinho mal feito tb!",
  15.   :status_id => Status::UNDER_APPROVAL,
  16.   :commentable_id => Gallery.last.id,
  17.   :commentable_type => "Gallery"
  18. ).save
  19.  
  20. Comment.new(
  21.   :username => "Joel",
  22.   :email => "joel@tv.br",
  23.   :body => "Palhaçada mesmo! Seu $$$ tá naquele banco espanhol e você ainda compra carros daqueles italianos?",
  24.   :status_id => Status::UNDER_APPROVAL,
  25.   :commentable_id => Gallery.last.id,
  26.   :commentable_type => "Gallery"
  27. ).save
  28.  
  29. Comment.new(
  30.   :username => "Marcos",
  31.   :email => "marcos@tv.br",
  32.   :body => "Vai que é sua são marcos !",
  33.   :status_id => Status::UNDER_APPROVAL,
  34.   :commentable_id => Gallery.first.id,
  35.   :commentable_type => "Gallery"
  36. ).save
  37.  
  38. Comment.new(
  39.   :username => "Marcos",
  40.   :email => "marcos@tv.br",
  41.   :body => "Vai que é sua são marcos !",
  42.   :status_id => Status::UNDER_APPROVAL,
  43.   :commentable_id => Video.first.id,
  44.   :commentable_type => "Video"
  45. ).save
  46.  
  47. Comment.new(
  48.   :username => "Roberto",
  49.   :email => "roberto@tv.br",
  50.   :body => "Felipe Massa/Ferrari chamou milhões de Brasileiros que estavam torcendo por ele, de idiotas! Alonso com o seu teatrinho mal feito tb!",
  51.   :status_id => Status::UNDER_APPROVAL,
  52.   :commentable_id => Video.last.id,
  53.   :commentable_type => "Video"
  54. ).save
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement