Skip to content

Instantly share code, notes, and snippets.

@kubicek
Created September 20, 2010 15:45
Show Gist options
  • Save kubicek/588095 to your computer and use it in GitHub Desktop.
Save kubicek/588095 to your computer and use it in GitHub Desktop.
class CreateAccounts < ActiveRecord::Migration
def self.up
create_table(:accounts) do |t|
t.string :name
t.string :surname
t.string :email
t.string :crypted_password
t.string :salt
t.string :role
t.timestamps
end
end
def self.down
drop_table(:accounts)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment