1 class AddUserPreferenceId < ActiveRecord::Migration
3 remove_primary_key 'user_preferences'
4 add_column "user_preferences", "id", :bigint, :limit => 64, :null => false
5 add_primary_key "user_preferences", ["id"]
6 change_column "user_preferences", "id", :bigint, :limit => 64, :null => false, :options => "AUTO_INCREMENT"
7 add_index "user_preferences", ["id"], :name => "user_preferences_id_idx"
11 remove_index 'user_preferences', 'id'
12 remove_column 'user_preferences', 'id'