]> git.openstreetmap.org Git - rails.git/blobdiff - db/migrate/034_create_languages.rb
Revert r16046.
[rails.git] / db / migrate / 034_create_languages.rb
index cb6c392637e04931b1127b9c9281cb8767d26fda..6b8973cf32d6c9f5fd98fa0914634603f985b8be 100644 (file)
@@ -19,11 +19,10 @@ class CreateLanguages < ActiveRecord::Migration
     end
 
     add_foreign_key :users, [:locale], :languages, [:code]
-    add_foreign_key :diary_entries, [:language], :languages, [:code]    
+    add_foreign_key :diary_entries, [:language_code], :languages, [:code]    
   end
 
   def self.down
     raise IrreversibleMigration.new
   end
 end
-