Sha256: 650cf00082314d6bddb6311c3cbe8f01d1a37467afdf9dd88f44bac28ff08981

Contents?: true

Size: 616 Bytes

Versions: 8

Compression:

Stored size: 616 Bytes

Contents

class CreateTr8nSyncTables < ActiveRecord::Migration
  def up
    create_table :tr8n_sync_logs do |t|
      t.timestamp :started_at
      t.timestamp :finished_at
      t.integer   :keys_sent
      t.integer   :translations_sent
      t.integer   :keys_received
      t.integer   :translations_received
      t.timestamps
    end
    
    add_column :tr8n_translation_keys, :synced_at, :timestamp
    add_column :tr8n_translations, :synced_at, :timestamp
  end

  def down
    drop_table :tr8n_sync_logs
    remove_column :tr8n_translation_keys, :synced_at
    remove_column :tr8n_translations, :synced_at
  end
end

Version data entries

8 entries across 4 versions & 1 rubygems

Version Path
tr8n-3.1.5 db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.5 local/tr8n_server/db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.4 db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.4 local/tr8n_server/db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.3 db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.3 local/tr8n_server/db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.2 db/migrate/20111003194443_create_tr8n_sync_tables.rb
tr8n-3.1.2 local/tr8n_server/db/migrate/20111003194443_create_tr8n_sync_tables.rb