Sha256: 3798472eb078f52cd33a4292c6bc74f423a3ca9f076ba0a4b4a565a82d000168
Contents?: true
Size: 515 Bytes
Versions: 1
Compression:
Stored size: 515 Bytes
Contents
class CreateTranslationTables < ActiveRecord::Migration def self.up create_table :translation_keys do |t| t.string :key, :unique=>true, :null=>false t.add_index :key t.timestamps end create_table :translation_texts do |t| t.text :text t.string :locale t.integer :translation_key_id, :null=>false t.add_index :translation_key_id t.timestamps end end def self.down drop_table :translation_keys drop_table :translation_texts end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
grosser-fast_gettext-0.4.4 | examples/db/migration.rb |