Class: Mongify::Translation::Sync::SyncHelperMigrator

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/mongify/translation/sync.rb

Instance Method Summary collapse

Instance Method Details

#upObject



14
15
16
17
18
19
20
# File 'lib/mongify/translation/sync.rb', line 14

def up
  create_table SYNC_HELPER_TABLE, :id => false do |t|
    t.string :table_name
    t.datetime :last_updated_at
  end
  add_index SYNC_HELPER_TABLE, :table_name
end