X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/dc2a2c8ebd1a11e4a64555fda22c6859a51defff..04cb8d488eecb69dfd0bd2958f60a9bd2c7858c2:/db/migrate/20120214210114_add_text_format.rb?ds=sidebyside diff --git a/db/migrate/20120214210114_add_text_format.rb b/db/migrate/20120214210114_add_text_format.rb index 3f82c3292..be8089a74 100644 --- a/db/migrate/20120214210114_add_text_format.rb +++ b/db/migrate/20120214210114_add_text_format.rb @@ -1,8 +1,6 @@ -require "migrate" - -class AddTextFormat < ActiveRecord::Migration +class AddTextFormat < ActiveRecord::Migration[4.2] def up - create_enumeration :format_enum, %w(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"