Sha256: 7185d4472407ca54894d1b1af8069453da396d335b3316ebbdcee78d9b50a8cf
Contents?: true
Size: 406 Bytes
Versions: 38
Compression:
Stored size: 406 Bytes
Contents
class CreateLikes < ActiveRecord::Migration def change create_table :likes do |t| t.string :liker_type t.integer :liker_id t.string :likeable_type t.integer :likeable_id t.datetime :created_at end add_index :likes, ["liker_id", "liker_type"], :name => "fk_likes" add_index :likes, ["likeable_id", "likeable_type"], :name => "fk_likeables" end end
Version data entries
38 entries across 20 versions & 2 rubygems