Cleanup our migrations, replacing as much of our custom code and monkey patching with modern standard rails methods.
10 lines
348 B
Ruby
10 lines
348 B
Ruby
require 'migrate'
|
|
|
|
class AddUserAndDescriptionToRedaction < ActiveRecord::Migration
|
|
def change
|
|
add_column :redactions, :user_id, :bigint, :null => false
|
|
add_column :redactions, :description_format, :format_enum, :null => false, :default => "markdown"
|
|
|
|
add_foreign_key :redactions, :users, :name => "redactions_user_id_fkey"
|
|
end
|
|
end
|