Skip to content

Instantly share code, notes, and snippets.

@tjwudi
Created October 30, 2013 14:51
Show Gist options
  • Save tjwudi/7233961 to your computer and use it in GitHub Desktop.
Save tjwudi/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