DB
リスト11.1 db/migrate/[timestamp]_create_relationships.rb class CreateRelationships < ActiveRecord::Migration def change create_table :relationships do |t| t.integer :follower_id t.integer :followed_id t.timestamps end add_index :relations…
リスト11.1 db/migrate/[timestamp]_create_relationships.rb class CreateRelationships < ActiveRecord::Migration def change create_table :relationships do |t| t.integer :follower_id t.integer :followed_id t.timestamps end add_index :relations…