Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

Change_table undefined with sqlite3 adapter

#163

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>

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

State: resolved
Milestone: none
Assigned to: nobody
Importance: none

Activity

  1. Jérôme
    Jérôme
    • Assigned user set to DHH

    May 10th, 2008 @ 12:41 PM

  2. josh
    josh
    • State changed from new to stale
    • Assigned user cleared.
    • Tag set to activerecord, edge, migrations, sqlite

    Closing this ticket as stale. If this is still an issue for you, feel free to reopen this ticket or create a new one with an updated description. Remember those unit tests too ;)

    July 17th, 2008 @ 01:14 AM

  3. Jérôme
    Jérôme

    It's ok now with rails 2.1-stable

    You may close the ticket I guess. Thx

    July 17th, 2008 @ 07:48 AM

  4. CancelProfileIsBroken
    CancelProfileIsBroken
    • State changed from stale to resolved

    August 3rd, 2009 @ 02:59 PM