Skip to content

Instantly share code, notes, and snippets.

@lusis
Created September 20, 2010 05:49
Show Gist options
  • Save lusis/587474 to your computer and use it in GitHub Desktop.
Save lusis/587474 to your computer and use it in GitHub Desktop.
padrino g model account name:string surname:string email:string crypted_password:string salt:string role:string -r .
=> Located unlocked Gemfile for development
apply orms/activerecord
skip app/models/account.rb
create db/migrate/001_create_accounts.rb
padrino rake ar:migrate
=> Executing Rake ar:migrate ...
== CreateAccounts: migrating =================================================
-- create_table("accounts", {})
-> 0.0028s
== CreateAccounts: migrated (0.0035s) ========================================
padrino rake seed
=> Executing Rake seed ...
Which email do you want use for loggin into admin? [email protected]
Tell me the password to use: testpassword
=================================================================
Account has been successfully created, now you can login with:
=================================================================
email: [email protected]
password: testpassword
=================================================================
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment