Sha256: d05dc960618bec54411ad73e6a51cd95c9e305a7beacfcaee329dcb84cdf3057

Contents?: true

Size: 417 Bytes

Versions: 10

Compression:

Stored size: 417 Bytes

Contents

class CreateFlexibleFeedsFollows < ActiveRecord::Migration
  def change
    create_table :flexible_feeds_follows do |t|
      t.integer :feed_id
      t.integer :follower_id
      t.string :follower_type

      t.timestamps
    end

    add_index :flexible_feeds_follows, :feed_id
    add_index :flexible_feeds_follows,
      [:follower_id, :follower_type],
      name: "flexible_feeds_follows_on_follower"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
flexible_feeds-0.4.0 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.6 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.5 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.4 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.3 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.2 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.1 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.3.0 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.2.1 db/migrate/20140227195107_create_flexible_feeds_follows.rb
flexible_feeds-0.1.0 db/migrate/20140227195107_create_flexible_feeds_follows.rb