Skip to content

Instantly share code, notes, and snippets.

@novalagung
Created November 3, 2012 11:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save novalagung/4007140 to your computer and use it in GitHub Desktop.
Save novalagung/4007140 to your computer and use it in GitHub Desktop.
# /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