ContactsMigration


Ruby Database migrations Ruby on Rails Public

Easy  

3min

Select all statements that are correct after the following migration has been executed:

class ContactsMigration < ActiveRecord::Migration
  def change
    create_table :contacts do |t|
      t.string :name
      t.text :address
      t.integer :tnumber
    end

    rename_column :contacts, :tnumber, :telephone_number
    add_timestamps(:contacts, null: true)
  end
end