3 class AddUserAndDescriptionToRedaction < ActiveRecord::Migration
5 add_column :redactions, :user_id, :bigint, :null => false
6 add_column :redactions, :description_format, :format_enum, :null => false, :default => "markdown"
8 add_foreign_key :redactions, [:user_id], :users, [:id]
12 remove_foreign_key :redactions, [:user_id], :users, [:id]
14 remove_column :redactions, :description_format
15 remove_column :redactions, :user_id