Sha256: 5313919c54f328ef0134322ec7460fae9a8fca1241147ac7b343553cd6153b0e

Contents?: true

Size: 398 Bytes

Versions: 10

Compression:

Stored size: 398 Bytes

Contents

class CreateFlexibleFeedsFeeds < ActiveRecord::Migration
  def change
    create_table :flexible_feeds_feeds do |t|
      t.string :feedable_type
      t.integer :feedable_id
      t.string :name

      t.timestamps
    end

    add_index :flexible_feeds_feeds, :name
    add_index :flexible_feeds_feeds,
      [:feedable_id, :feedable_type],
      name: "flexible_feeds_feeds_on_parent"
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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