Sha256: 9f63eb99b5c8c3afa1cbd220210944511ccdabc4e5d4b04c19b0c6cbd1b126ad
Contents?: true
Size: 575 Bytes
Versions: 43
Compression:
Stored size: 575 Bytes
Contents
class CreateTranslationTables < ActiveRecord::Migration def self.up create_table :translation_keys do |t| t.string :key, :unique=>true, :null=>false t.timestamps end add_index :translation_keys, :key #I am not sure if this helps.... create_table :translation_texts do |t| t.text :text t.string :locale t.integer :translation_key_id, :null=>false t.timestamps end add_index :translation_texts, :translation_key_id end def self.down drop_table :translation_keys drop_table :translation_texts end end
Version data entries
43 entries across 43 versions & 2 rubygems