diff --git a/migrate.go b/migrate.go
index <HASH>..<HASH> 100644
--- a/migrate.go
+++ b/migrate.go
@@ -3,6 +3,7 @@ package migrate
 import (
 	"bytes"
 	"database/sql"
+	"flag"
 	"fmt"
 	"io"
 	"os"
@@ -22,7 +23,12 @@ const (
 	Down
 )
 
-const tableName = "gorp_migrations"
+var tableName string
+
+func init() {
+	flag.StringVar(&tableName, "table", "gorp_migrations", "Migration table name. Defaults to gorp_migrations.")
+	flag.Parse()
+}
 
 type Migration struct {
 	Id   string
Adds command-line flag for migration tablename.