I have the following table, created using active scaffold. I need to list 
the columns in a custom order, 1) surname, 2)firstname, 3)Identity number 
.....
How do I go about doing this? My table structure is listed below.

class CreateResources < ActiveRecord::Migration[5.1]
  def change
    create_table :resources do |t|
      t.string :firstname
      t.string :surname
      t.date :date_of_birth
      t.string :identity_number
      t.string :nationality
      t.string :state_province
      t.date :interview_date
      t.string :available
      t.string :home_phone
      t.string :mobile_phone

      t.timestamps
    end
  end
end

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.

Reply via email to