Sha256: a852de33431b40de2db8b2bc60b06452b2fedd2b6f8bfc6bf08da60bdb910d49

Contents?: true

Size: 644 Bytes

Versions: 11

Compression:

Stored size: 644 Bytes

Contents

class ActsAsTaggableMigration < ActiveRecord::Migration
  def self.up
    create_table :globalize_translations do |t|
      t.string :locale, :null => false
      t.string :key, :null => false
      t.string :translation
      t.timestamps
    end

# TODO: FINISH DOING MIGRATION -- stopped in the middle
    
    create_table :globalize_translations_map do |t|
      t.string  :key, :null => false
      t.integer :translation_id, :null => false
    end
    
    add_index :taggings, :tag_id
    add_index :taggings, [:taggable_id, :taggable_type]
  end
  
  def self.down
    drop_table :globalize_translations
    drop_table :tags
  end
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
kriss-gettext_i18n-0.2.0 vendor/globalize2/generators/templates/db_backend_migration.rb
kriss-gettext_i18n-0.2.1 vendor/globalize2/generators/templates/db_backend_migration.rb
kriss-gettext_i18n-0.2.2 vendor/globalize2/generators/templates/db_backend_migration.rb
kriss-gettext_i18n-0.2.3 vendor/globalize2/generators/templates/db_backend_migration.rb
simonmenke-globalize2-0.0.1 generators/templates/db_backend_migration.rb
simonmenke-globalize2-0.0.4 generators/templates/db_backend_migration.rb
simonmenke-globalize2-0.0.5 generators/templates/db_backend_migration.rb
simonmenke-globalize2-0.0.6 generators/templates/db_backend_migration.rb
simonmenke-simonmenke-globalize2-0.0.2 generators/templates/db_backend_migration.rb
simonmenke-globalize2-0.0.7 generators/templates/db_backend_migration.rb
globalize2-0.1.0 generators/templates/db_backend_migration.rb