Skip to content

Instantly share code, notes, and snippets.

@ukstudio
Created June 7, 2010 11:29
Show Gist options
  • Select an option

  • Save ukstudio/428559 to your computer and use it in GitHub Desktop.

Select an option

Save ukstudio/428559 to your computer and use it in GitHub Desktop.
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :login, :null => false
t.string :name, :null => false
t.string :crypted_password
t.string :salt
t.timestamps
end
end
def self.down
drop_table :users
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment