Complete the code to name a table for storing user data following Rails conventions.
create_table :[1] do |t|
t.string :name
t.timestamps
endRails table names are plural and lowercase, so users is correct.
Complete the code to name a join table for users and roles in Rails.
create_table :[1], id: false do |t|
t.references :user
t.references :role
endRails join tables are named by combining plural table names in alphabetical order, so roles_users is correct.
Fix the error in the table name to follow Rails conventions.
create_table :[1] do |t|
t.string :title
t.timestamps
endRails expects table names to be lowercase and plural, so books is correct.
Fill both blanks to create a migration for a table named correctly and with a primary key.
create_table :[1], [2] do |t| t.string :email t.timestamps end
The table name should be plural customers and the primary key option is primary_key: :id by default.
Fill all three blanks to define a join table with no id and correct naming.
create_table :[1], [2] do |t| t.references :[3] t.references :group end
The join table name is groups_users (alphabetical plural), no id column with id: false, and references to user and group.