Sha256: f8b7b7590e76758cf85ada9e38ceeab1e4531cae165617a57f695894b597e816

Contents?: true

Size: 369 Bytes

Versions: 6

Compression:

Stored size: 369 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
      t.boolean :protected, :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.2.0 lib/generators/interpret/templates/migration.rb
interpret-0.2.0 test_app/db/migrate/20110219143622_interpret_create_translations.rb
interpret-0.1.5 lib/generators/interpret/templates/migration.rb
interpret-0.1.5 test_app/db/migrate/20110219143622_interpret_create_translations.rb
interpret-0.1.4 lib/generators/interpret/templates/migration.rb
interpret-0.1.4 test_app/db/migrate/20110219143622_interpret_create_translations.rb