Skip to content

Instantly share code, notes, and snippets.

@meetwudi
Created October 30, 2013 14:51
Show Gist options
  • Select an option

  • Save meetwudi/7233961 to your computer and use it in GitHub Desktop.

Select an option

Save meetwudi/7233961 to your computer and use it in GitHub Desktop.
class CreateLikes < ActiveRecord::Migration
def change
create_table :likes do |t|
t.references :user, index: true
t.references :activity, index: true
t.timestamps
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment