thanks for the help in advance. I have a simple table in Rails 4.0.2 using a development sqlite 3 database. I want to move the order of one of the columns and its not working for some reason. Believe I'm following all the instructions from here that I could find. the migrations run without error, but nothing changes.
My current schema:
create_table "emails", force: true do |t|
t.string "email"
t.boolean "active"
t.integer "member_id"
t.datetime "created_at"
t.datetime "updated_at"
t.integer "email_type_id"
end
I'm trying to move the 'email_type_id' up to behind 'member_id' with this migration:
class Trynumber5of < ActiveRecord::Migration
def change
change_column :emails, :email_type_id, :integer, :after => :member_id
end
end
I'm sure I'm doing something silly. It runs but nothing happens? I reference this solution for the migration code.
Thanks in advance for any help, its become my white whale of a challenge and driving me crazy;-)
Mark