This project is archived and is in readonly mode.

#163 ✓resolved
Jérôme

Change_table undefined with sqlite3 adapter

Reported by Jérôme | May 10th, 2008 @ 11:15 AM

Hi,

After checking out latest rails edge (Submodule path 'vendor/rails': checked out '7f4171da5e3ed5b3e038b95f8f5ae05ba6e21bef'), I can't make change_table work.

Migration file is:

class ChangePages < ActiveRecord::Migration
  def self.up
    change_table :pages do |t|
      t.references :topic
    end
    add_index :pages, :topic_id
  end

  def self.down
    change_table :pages do |t|
      t.remove_column :topic_id 
    end
  end
end
$ rake db:migrate
(...)
-- change_table(:pages)
rake aborted!
undefined method `change_table' for #<ActiveRecord::ConnectionAdapters::SQLite3Adapter:0x2131e40>

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages