Created
November 3, 2012 11:46
-
-
Save novalagung/4007140 to your computer and use it in GitHub Desktop.
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
# /hellorails2/db/migrate/20121103061219_create_users.rb | |
class CreateUsers < ActiveRecord::Migration | |
def up | |
create_table :users do |t| | |
t.string "nama", :limit => 25 | |
end | |
end | |
def down | |
drop_table :users | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment