I've got a very simple migration that adds a single boolean column:
class AddMuteToPreferences < ActiveRecord::Migration
def self.up
add_column :preferences, :mute_audio, :boolean, :default => false
end
def self.down
remove_column :preferences, :mute_audio
end
end
I run the migration:
== 81 AddMuteToPreferences: migrating =========================================
-- add_column(:preferences, :mute_audio, :boolean, {:default=>false})
-> 1.9043s
== 81 AddMuteToPreferences: migrated (1.9047s) ================================
Looks peachy, right? But, for some reason, there's still no mute_audio column in my preferences table.
I can't figure it out. I've executed add_column before with no problems.
Has anyone ever seen this behavior before?