Hi All,
I had a column-name “changed” that I wanted to replaced with
“accessed”.
I tried:
class ModifyChangedAttribute < ActiveRecord::Migration
def self.up
rename_column(:csvs, :created, :accessed)
end
def self.down
rename_column(:csvs, :accessed, :created)
end
end
The migration failed:
- It was apparent because rake db/migrate returned only one line
indicating the app’s “home” - Sqlite3’s .dump table_name showed that “created” was unchanged.
I see now that I provided no table_name to the migration. How do I do
that?
I’m running:
ruby 1.8.6
Rails 2.2.1
Win-Pro/SP3
Thanks in Advance,
Richard