Sha256: b589391602bbd42dfd4562595282bcee8d0d81bb68edd23fe4efe51adb2380da

Contents?: true

Size: 323 Bytes

Versions: 6

Compression:

Stored size: 323 Bytes

Contents

class InterpretCreateTranslations < ActiveRecord::Migration
  def self.up
    create_table :translations do |t|
      t.string :locale
      t.string :key
      t.text   :value
      t.text   :interpolations
      t.boolean :is_proc, :default => false
    end
  end

  def self.down
    drop_table :translations
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
interpret-0.1.3 lib/generators/interpret/templates/migration.rb
interpret-0.1.3 test_app/db/migrate/20110209185258_interpret_create_translations.rb
interpret-0.1.2 lib/generators/interpret/templates/migration.rb
interpret-0.1.2 test_app/db/migrate/20110209185258_interpret_create_translations.rb
interpret-0.1.1 lib/generators/interpret/templates/migration.rb
interpret-0.1.1 test_app/db/migrate/20110209185258_interpret_create_translations.rb