and now id like to create a new profiles table, do i script/generate
I’m assuming you meant to say you’d like to create a new FIELD in the existing profiles table (you can’t have two tables named the same). If so, you’re right, create a new migration
script/generate migration add_new_field_to_profile
This will create a new migration file called something like 009_add_new_field_to_profile. Edit this migration file:
class AddNewFieldToProfile< ActiveRecord::Migration
def self.up add_column "profiles,“new_column” end
def self.down remove_column “profiles”, “new_column” end end
when you run rake migrate next, the new column will be added to your table. If you’d like to roll back this change and remove the column, try
rake migrate VERSION=8
Hammed