This will create a parents table, a kids table and a relationship between the two tables.
-
Create the Parents table
bundle exec rails generate model parents fname:string lname:string
-
Create the Kids table
bundle exec rails generate model kids fname:string lname:string