Created
March 14, 2010 03:08
-
-
Save lxneng/331743 to your computer and use it in GitHub Desktop.
set default ActiveRecord id (mysql)
This file contains hidden or 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 CreateCustomers < ActiveRecord::Migration | |
def self.up | |
create_table :customers do |t| | |
t.string :name | |
t.timestamps | |
end | |
execute "ALTER TABLE customers AUTO_INCREMENT = 1000;" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment