what do you write to indicate that a tweet from table "tweets" only belongs to one zombie? (from table "zombies")? a) class Tweet validates_presence_of :status end

Question:what do you write to indicate that a tweet from table "tweets" only belongs to one zombie? (from table "zombies")? a) class Tweet validates_presence_of :status end

1.class Tweet validates_presence_of :status end

2.class Zombie < ActiveRecord::Base has_many :tweets end

3.class Tweet < ActiveRecord::Base belongs_to :zombie end

4.class TweetsController < ApplicationController ...


Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!