Sha256: f7e77f5c8da4c9244fe3d2d1a03173401e7a9e81e4a5f0b6641d72658fe31f7e
Contents?: true
Size: 465 Bytes
Versions: 7
Compression:
Stored size: 465 Bytes
Contents
class AddFollowsMigration < ActiveRecord::Migration def up create_table :follows do |t| t.references :followable, polymorphic: true t.references :follower, polymorphic: true t.timestamps end add_index :follows, ['follower_id', 'follower_type'], name: 'index_partisan_followers' add_index :follows, ['followable_id', 'followable_type'], name: 'index_partisan_followables' end def down drop_table :follows end end
Version data entries
7 entries across 7 versions & 1 rubygems