Sha256: afbae0340e636efffcb6dd9fad916e6f54718ffb36e6519c8cd08f1a98d07bd0
Contents?: true
Size: 649 Bytes
Versions: 64
Compression:
Stored size: 649 Bytes
Contents
# This migration comes from dm_core (originally 20140201092656) class ActsAsFollowerMigration < ActiveRecord::Migration def self.up create_table :follows, :force => true do |t| t.references :followable, :polymorphic => true, :null => false t.references :follower, :polymorphic => true, :null => false t.boolean :blocked, :default => false, :null => false t.timestamps null: true end add_index :follows, ["follower_id", "follower_type"], :name => "fk_follows" add_index :follows, ["followable_id", "followable_type"], :name => "fk_followables" end def self.down drop_table :follows end end
Version data entries
64 entries across 64 versions & 4 rubygems