Sha256: 9865732d6011543686ab6397314505c412c1374af75aeead0000a8ac96749b1f

Contents?: true

Size: 462 Bytes

Versions: 3

Compression:

Stored size: 462 Bytes

Contents

class CreateFlexibleFeedsEventJoins < ActiveRecord::Migration
  def change
    create_table :flexible_feeds_event_joins do |t|
      t.integer :feed_id
      t.integer :event_id
      t.boolean :sticky, null: false, default: false

      t.timestamps
    end

    add_index :flexible_feeds_event_joins, :sticky
    add_index :flexible_feeds_event_joins,
      [:event_id, :feed_id],
      unique: true,
      name: "flexible_feeds_event_joins_joinery"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flexible_feeds-0.4.0 db/migrate/20140227194904_create_flexible_feeds_event_joins.rb
flexible_feeds-0.3.6 db/migrate/20140227194904_create_flexible_feeds_event_joins.rb
flexible_feeds-0.3.5 db/migrate/20140227194904_create_flexible_feeds_event_joins.rb