Sha256: df6f7b78a83ccc9154af4681452a3d11606b5d4151cda94ef9345c8a55b1b013

Contents?: true

Size: 488 Bytes

Versions: 5

Compression:

Stored size: 488 Bytes

Contents

# This migration comes from timeful (originally 20160927154912)
class CreateTimefulFeedItems < ActiveRecord::Migration[5.0]
  def change
    create_table :timeful_feed_items do |t|
      t.string :feedable_type, null: false
      t.integer :feedable_id, null: false
      t.integer :activity_id, null: false

      t.timestamps null: false

      t.foreign_key :timeful_activities, column: :activity_id, on_delete: :cascade

      t.index [:feedable_type, :feedable_id]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
timeful-2.1.0 spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
timeful-2.0.0 spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
timeful-1.1.0 spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
timeful-1.0.0 spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb
timeful-0.0.1 spec/dummy/db/migrate/20160927155215_create_timeful_feed_items.timeful.rb