Sha256: 142666b0cf604aa885f1b599ec08061ce31ccb9fd0f222c517aa1de49441b817

Contents?: true

Size: 467 Bytes

Versions: 8

Compression:

Stored size: 467 Bytes

Contents

class CreateRubySyncOperations < ActiveRecord::Migration
  def self.up
    create_table :ruby_sync_operations do |t|
      t.column 'operation', :string, :limit=>8 # add, delete or replace
      t.column 'field_name', :string
      t.column 'ruby_sync_event_id', :integer
    end
    add_index :ruby_sync_operations, :ruby_sync_event_id
  end

  def self.down
    remove_index :ruby_sync_operations, :ruby_sync_event_id
    drop_table :ruby_sync_operations
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rubysync-0.0.1 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.1.1 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.0.2 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.0.3 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.0.5 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.1.0 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.0.4 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb
rubysync-0.2.1 examples/ar_webapp/db/migrate/006_create_ruby_sync_operations.rb