Sha256: 7e1b01fc21be120395e306cbc25c13c3b15eb9d0eeacf6bb3f31202ff5fbdfa0
Contents?: true
Size: 359 Bytes
Versions: 20
Compression:
Stored size: 359 Bytes
Contents
class CreateRelationships < ActiveRecord::Migration def change create_table :relationships do |t| t.integer :follower_id t.integer :followed_id t.timestamps end add_index :relationships, :follower_id add_index :relationships, :followed_id add_index :relationships, [:follower_id, :followed_id], unique: true end end
Version data entries
20 entries across 20 versions & 2 rubygems