diff options
| author | hukl <contact@smyck.org> | 2010-01-14 22:21:43 +0100 |
|---|---|---|
| committer | hukl <contact@smyck.org> | 2010-01-14 22:21:43 +0100 |
| commit | 57d1382013c85a7b11ac8ce5e683f6006b12b328 (patch) | |
| tree | 19646c4fa5952fa1cf0a2c874952affa346373f1 /vendor/plugins/globalize2/generators | |
| parent | 1b86bf5f2e35d1820bfa32d979bcc2d9ff9a9a8e (diff) | |
Updated globalize2 to latest version. Modified existing code accoringly
Diffstat (limited to 'vendor/plugins/globalize2/generators')
| -rw-r--r-- | vendor/plugins/globalize2/generators/templates/db_backend_migration.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/plugins/globalize2/generators/templates/db_backend_migration.rb b/vendor/plugins/globalize2/generators/templates/db_backend_migration.rb index d4513a5..0f02611 100644 --- a/vendor/plugins/globalize2/generators/templates/db_backend_migration.rb +++ b/vendor/plugins/globalize2/generators/templates/db_backend_migration.rb | |||
| @@ -8,16 +8,16 @@ class ActsAsTaggableMigration < ActiveRecord::Migration | |||
| 8 | end | 8 | end |
| 9 | 9 | ||
| 10 | # TODO: FINISH DOING MIGRATION -- stopped in the middle | 10 | # TODO: FINISH DOING MIGRATION -- stopped in the middle |
| 11 | 11 | ||
| 12 | create_table :globalize_translations_map do |t| | 12 | create_table :globalize_translations_map do |t| |
| 13 | t.string :key, :null => false | 13 | t.string :key, :null => false |
| 14 | t.integer :translation_id, :null => false | 14 | t.integer :translation_id, :null => false |
| 15 | end | 15 | end |
| 16 | 16 | ||
| 17 | add_index :taggings, :tag_id | 17 | add_index :taggings, :tag_id |
| 18 | add_index :taggings, [:taggable_id, :taggable_type] | 18 | add_index :taggings, [:taggable_id, :taggable_type] |
| 19 | end | 19 | end |
| 20 | 20 | ||
| 21 | def self.down | 21 | def self.down |
| 22 | drop_table :globalize_translations | 22 | drop_table :globalize_translations |
| 23 | drop_table :tags | 23 | drop_table :tags |
