Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 373
- Log:
Initial import of Radiant 0.9.1, which is now packaged as a gem. This is an
import of the tagged 0.9.1 source checked out from GitHub, which isn't quite
the same as the gem distribution - but it doesn't seem to be available in an
archived form and the installed gem already has modifications, so this is
the closest I can get.
- Author:
- rool
- Date:
- Mon Mar 21 13:40:05 +0000 2011
- Size:
- 982 Bytes
1 | namespace :db do |
2 | desc "Migrate schema to version 0 and back up again. WARNING: Destroys all data in tables!!" |
3 | task :remigrate => :environment do |
4 | require 'highline/import' |
5 | if ENV['OVERWRITE'].to_s.downcase == 'true' or agree("This task will destroy any data in the database. Are you sure you want to \ncontinue? [yn] ") |
6 | |
7 | # Migrate downward |
8 | ActiveRecord::Migrator.migrate("#{RADIANT_ROOT}/db/migrate/", 0) |
9 | |
10 | # Migrate upward |
11 | Rake::Task["db:migrate"].invoke |
12 | |
13 | # Dump the schema |
14 | Rake::Task["db:schema:dump"].invoke |
15 | else |
16 | say "Task cancelled." |
17 | exit |
18 | end |
19 | end |
20 | |
21 | desc "Bootstrap your database for Radiant." |
22 | task :bootstrap => :remigrate do |
23 | require 'radiant/setup' |
24 | Radiant::Setup.bootstrap( |
25 | :admin_name => ENV['ADMIN_NAME'], |
26 | :admin_username => ENV['ADMIN_USERNAME'], |
27 | :admin_password => ENV['ADMIN_PASSWORD'], |
28 | :database_template => ENV['DATABASE_TEMPLATE'] |
29 | ) |
30 | end |
31 | end |