Created
February 15, 2012 09:01
-
-
Save chechaoyang/1834574 to your computer and use it in GitHub Desktop.
让用户ID从10001开始
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AlterUsersIdStartFrom10001 < ActiveRecord::Migration | |
def self.up | |
execute "ALTER TABLE users AUTO_INCREMENT = 10001;" | |
end | |
def self.down | |
execute "ALTER TABLE users AUTO_INCREMENT = 1;" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment