Sha256: 37bdd3c31779172abcb58af2c1465c5f11685519a76c0a7c2444d94aa4708176

Contents?: true

Size: 461 Bytes

Versions: 10

Compression:

Stored size: 461 Bytes

Contents

class CreateFlexibleFeedsModeratorJoins < ActiveRecord::Migration
  def change
    create_table :flexible_feeds_moderator_joins do |t|
      t.integer :feed_id
      t.integer :moderator_id
      t.string :moderator_type

      t.timestamps
    end

    add_index :flexible_feeds_moderator_joins, :feed_id
    add_index :flexible_feeds_moderator_joins,
      [:moderator_id, :moderator_type],
      name: "flexible_feeds_moderator_joins_on_moderator"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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