Sha256: f83819deb032d315b4417b0c4fbe735af9dac9f73292a5441b3d6c8a651ef079

Contents?: true

Size: 286 Bytes

Versions: 4

Compression:

Stored size: 286 Bytes

Contents

class CreateHatchyCategoryFollowers < ActiveRecord::Migration
  def change
    create_table :hatchy_category_followers do |t|
      t.belongs_to  :category
      t.belongs_to  :user
      t.timestamps
    end
    add_index :hatchy_category_followers, [:user_id, :category_id]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hatchy-0.0.8.pre db/migrate/20160111181655_create_hatchy_category_followers.rb
hatchy-0.0.7.pre db/migrate/20160111181655_create_hatchy_category_followers.rb
hatchy-0.0.6.pre db/migrate/20160111181655_create_hatchy_category_followers.rb
hatchy-0.0.5.pre db/migrate/20160111181655_create_hatchy_category_followers.rb