tracks/db/migrate/003_created_at.rb
2008-05-20 21:28:26 +01:00

12 lines
364 B
Ruby

class CreatedAt < ActiveRecord::Migration
# Current bug in Rails that prevents rename_column working in SQLite
# if the column names use symbols instead of strings.
# <http://dev.rubyonrails.org/changeset/2731>
def self.up
rename_column :todos, 'created', 'created_at'
end
def self.down
rename_column :todos, 'created_at', 'created'
end
end