Sha256: 0a5f6140ddfe766a5b0b132aa0e7cffc81c30f79ee5519ec48275b075febee0a

Contents?: true

Size: 679 Bytes

Versions: 33

Compression:

Stored size: 679 Bytes

Contents

class RemoveTranslations < ActiveRecord::Migration
  def self.up
    drop_table 'trans_phrases'
    drop_table 'trans_values'
    remove_column 'sites', 'trans_group_id'
  end

  def self.down
    add_column 'sites', :trans_group_id, :integer
    create_table("trans_phrases", :options => Zena::Db.table_options) do |t|
      t.column "phrase", :string, :limit => 100, :default => "", :null => false
    end

    create_table("trans_values", :options => Zena::Db.table_options) do |t|
      t.column "phrase_id", :integer
      t.column "lang", :string, :limit => 10, :default => "", :null => false
      t.column "value", :text, :default => "", :null => false
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
zena-1.2.8 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.7 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.6 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.5 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.4 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.3 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.2 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.1 db/fix/old_migrations/016_remove_translations.rb
zena-1.2.0 db/fix/old_migrations/016_remove_translations.rb
zena-1.1.3 db/fix/old_migrations/016_remove_translations.rb
zena-1.1.2 db/fix/old_migrations/016_remove_translations.rb
zena-1.1.1 db/fix/old_migrations/016_remove_translations.rb
zena-1.1.0 db/fix/old_migrations/016_remove_translations.rb
zena-1.0.0 db/fix/old_migrations/016_remove_translations.rb
zena-1.0.0.rc3 db/fix/old_migrations/016_remove_translations.rb
zena-1.0.0.rc2 db/fix/old_migrations/016_remove_translations.rb
zena-1.0.0.rc1 db/fix/old_migrations/016_remove_translations.rb
zena-0.16.9 db/migrate/016_remove_translations.rb
zena-1.0.0.beta3 db/migrate/016_remove_translations.rb
zena-0.16.8 db/migrate/016_remove_translations.rb