-class ChangeDiaryEntriesLanguage < ActiveRecord::Migration[5.0]
+class ChangeDiaryEntriesLanguage < ActiveRecord::Migration[4.2]
def self.up
remove_column "diary_entries", "language"
add_column "diary_entries", "language_code", :string, :null => false, :default => "en"