This project is archived and is in readonly mode.
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
-
Jérôme May 10th, 2008 @ 12:41 PM
- Assigned user set to DHH
-
josh July 17th, 2008 @ 01:14 AM
- 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 ;)
-
Jérôme July 17th, 2008 @ 07:48 AM
It's ok now with rails 2.1-stable
You may close the ticket I guess. Thx
-
CancelProfileIsBroken August 3rd, 2009 @ 02:59 PM
- State changed from stale to resolved
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>