Sha256: 6ff8af95e2f01d40bc811bfb634ee290770ddbc6e4b215f95886a803ce0023e8

Contents?: true

Size: 1.26 KB

Versions: 15

Compression:

Stored size: 1.26 KB

Contents

# This migration comes from myreplicator (originally 20121025191622)
class CreateMyreplicatorExports < ActiveRecord::Migration
  def change
    create_table :myreplicator_exports do |t|
      t.string :source_schema
      t.string :destination_schema
      t.string :table_name
      t.string :incremental_column
      t.string :max_incremental_value
      t.string :incremental_column_type
      t.string :export_to, :default => "destination_db"
      t.string :export_type, :default => "incremental"
      t.string :s3_path
      t.string :cron
      t.string :state, :default => "new"
      t.text :error
      t.boolean :active, :default => true
      t.integer :exporter_pid
      t.integer :transporter_pid
      t.integer :loader_pid
      t.datetime :export_started_at, :default => nil
      t.datetime :export_finished_at, :default => nil
      t.datetime :load_started_at, :default => nil
      t.datetime :load_finished_at, :default => nil
      t.datetime :transfer_started_at, :default => nil
      t.datetime :transfer_finished_at, :default => nil
      t.timestamps
    end  
    add_index :myreplicator_exports, [:source_schema, :destination_schema, :table_name], :unique => true, :name => "unique_index"
  end

  def self.down
    drop_table :myreplicator_exports
  end
  
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
myreplicator-0.0.16 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.15 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.14 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.13 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.12 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.11 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.10 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.9 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.7 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.6 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.5 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.4 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.3 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.2 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb
myreplicator-0.0.1 test/dummy/db/migrate/20121115194022_create_myreplicator_exports.myreplicator.rb