Skip to content

Instantly share code, notes, and snippets.

@beydogan
Created October 26, 2013 14:04
Show Gist options
  • Save beydogan/7169816 to your computer and use it in GitHub Desktop.
Save beydogan/7169816 to your computer and use it in GitHub Desktop.
class CreateCommitPoints < ActiveRecord::Migration
def change
create_table :commit_points do |t|
t.integer :commit_id
t.integer :language_id
t.float :point
end
add_index :commit_points, [:commit_id, :language_id]
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment