Sha256: c276e98295d42eecb943f5393e17dd7a853152bdbbaa59dbf58d0430f679380e

Contents?: true

Size: 437 Bytes

Versions: 8

Compression:

Stored size: 437 Bytes

Contents

class CreateRubySyncEvents < ActiveRecord::Migration
  def self.up
    create_table :ruby_sync_events do |t|
      t.column 'timestamp', :time
      t.column 'event_type', :string, :limit=>8
      t.column 'trackable_id', :integer
      t.column 'trackable_type', :string
    end
    add_index :ruby_sync_events, :timestamp
  end

  def self.down
    remove_index :ruby_sync_events, :timestamp
    drop_table :ruby_sync_events
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

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