Sha256: d8e238ad0a8e9d9ea945698b50de64b893852f1cf3d7ad5bb9740f1d017eaa9a

Contents?: true

Size: 403 Bytes

Versions: 2

Compression:

Stored size: 403 Bytes

Contents

require 'social_stream/migrations/base'

module SocialStream
  module Migrations
    class Events < Base
      def initialize
        super

        @events = find_migration('social_stream-events')
      end

      def up
        super

        ActiveRecord::Migrator.migrate @events
      end

      def down
        ActiveRecord::Migrator.migrate @events, 0

        super
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
social_stream-events-0.0.2 lib/social_stream/migrations/events.rb
social_stream-events-0.0.1 lib/social_stream/migrations/events.rb