Sha256: 293593cbc2412691604d5e714228e00354ab7b48b9230b8fce282608c0d04bea
Contents?: true
Size: 441 Bytes
Versions: 1
Compression:
Stored size: 441 Bytes
Contents
class CreateFollows < ActiveRecord::Migration[6.0] def change create_table :follows do |t| t.string :follower_type t.integer :follower_id t.string :followable_type t.integer :followable_id t.datetime :created_at end add_index :follows, ["follower_id", "follower_type"], :name => "fk_follows" add_index :follows, ["followable_id", "followable_type"], :name => "fk_followables" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
socialization-2.0.2 | lib/generators/socialization/templates/active_record/migration_follows.rb |