X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/0d3a9ed9cb47ce3b89ea9eaffbb589f9a9ff6d22..4530f6e3e4a327f5adf348f1cb69fd1ef0bd90f9:/db/migrate/20120214210114_add_text_format.rb?ds=inline diff --git a/db/migrate/20120214210114_add_text_format.rb b/db/migrate/20120214210114_add_text_format.rb index 5b4455f58..8e6853188 100644 --- a/db/migrate/20120214210114_add_text_format.rb +++ b/db/migrate/20120214210114_add_text_format.rb @@ -1,8 +1,8 @@ -require 'migrate' +require "migrate" -class AddTextFormat < ActiveRecord::Migration +class AddTextFormat < ActiveRecord::Migration[5.0] def up - create_enumeration :format_enum, ["html", "markdown", "text"] + create_enumeration :format_enum, %w[html markdown text] add_column :users, :description_format, :format_enum, :null => false, :default => "html" add_column :user_blocks, :reason_format, :format_enum, :null => false, :default => "html" add_column :diary_entries, :body_format, :format_enum, :null => false, :default => "html"