Sha256: c34fcb2e400487ee266737b53dfb381495950174903164b37177a4fa6b0690a0

Contents?: true

Size: 440 Bytes

Versions: 195

Compression:

Stored size: 440 Bytes

Contents

require 'social_stream/migrations/base'

module SocialStream
  module Migrations
    class Components < Base
      def initialize
        @component = find_migration "social_stream-#{ self.class.name.split('::').last.underscore }"
      end

      def up(options = {})
        ActiveRecord::Migrator.migrate @component
      end

      def down(options = {})
        ActiveRecord::Migrator.migrate @component, 0
      end
    end
  end
end

Version data entries

195 entries across 195 versions & 4 rubygems

Version Path
social_stream-2.2.2 base/lib/social_stream/migrations/components.rb
social_stream-base-2.2.2 lib/social_stream/migrations/components.rb
social_stream-2.2.1 base/lib/social_stream/migrations/components.rb
social_stream-base-2.2.1 lib/social_stream/migrations/components.rb
social_stream-2.2.0 base/lib/social_stream/migrations/components.rb
social_stream-base-2.2.0 lib/social_stream/migrations/components.rb
social_stream-2.1.1 base/lib/social_stream/migrations/components.rb
social_stream-1.1.12 base/lib/social_stream/migrations/components.rb
social_stream-base-1.1.11 lib/social_stream/migrations/components.rb
social_stream-2.1.0 base/lib/social_stream/migrations/components.rb
social_stream-base-2.1.0 lib/social_stream/migrations/components.rb
social_stream-2.0.4 base/lib/social_stream/migrations/components.rb
social_stream-base-2.0.4 lib/social_stream/migrations/components.rb
social_stream-2.0.3 base/lib/social_stream/migrations/components.rb
social_stream-base-2.0.3 lib/social_stream/migrations/components.rb
social_stream-1.1.11 base/lib/social_stream/migrations/components.rb
social_stream-base-1.1.10 lib/social_stream/migrations/components.rb
social_stream-1.1.10 base/lib/social_stream/migrations/components.rb
social_stream-base-1.1.9 lib/social_stream/migrations/components.rb
social_stream-1.1.9 base/lib/social_stream/migrations/components.rb