Using ActiveRecord outside of rails
just the rake
- tags
- activerecord
- ruby
Contents
Install dependancies
|
|
Then
|
|
Rakefile
|
|
Now
|
|
rake db:create # Create the database rake db:drop # Drop the database rake db:migrate # Migrate the database rake db:reset # Reset the database rake db:schema # Create a db/schema.rb file that is portable against any DB supported by AR rake g:migration # Generate migration
Previously
Next