github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

radiant / radiant

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 878
    • 180
  • Source
  • Commits
  • Network (180)
  • Issues (43)
  • Downloads (6)
  • Wiki (113)
  • Graphs
  • Tree: f909ad1

click here to add a description

click here to add a homepage

  • Branches (5)
    • 0.8.2
    • cuke
    • i18n
    • master
    • ui
  • Tags (6)
    • 0.8.1
    • 0.8.0
    • 0.7.1
    • 0.7.0
    • 0.6.9
    • 0.6.8
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Radiant is a no-fluff, open source content management system designed for small teams. — Read more

  cancel

http://radiantcms.org/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Reverse view paths order in extension loader. [[#49] state:resolved] 
seancribbs (author)
Tue Mar 03 16:19:46 -0800 2009
commit  f909ad100c6d6d17882db112df442c59607bf5b4
tree    b1dcaa6e006b3b64d23ea1610474a28340b0bab6
parent  cab11d9d6a57f25893db57823bc0acba0bf03b53
radiant / lib / tasks / database.rake lib/tasks/database.rake
100644 31 lines (27 sloc) 0.982 kb
edit raw blame history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
namespace :db do
  desc "Migrate schema to version 0 and back up again. WARNING: Destroys all data in tables!!"
  task :remigrate => :environment do
    require 'highline/import'
    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] ")
      
      # Migrate downward
      ActiveRecord::Migrator.migrate("#{RADIANT_ROOT}/db/migrate/", 0)
    
      # Migrate upward
      Rake::Task["db:migrate"].invoke
      
      # Dump the schema
      Rake::Task["db:schema:dump"].invoke
    else
      say "Task cancelled."
      exit
    end
  end
  
  desc "Bootstrap your database for Radiant."
  task :bootstrap => :remigrate do
    require 'radiant/setup'
    Radiant::Setup.bootstrap(
      :admin_name => ENV['ADMIN_NAME'],
      :admin_username => ENV['ADMIN_USERNAME'],
      :admin_password => ENV['ADMIN_PASSWORD'],
      :database_template => ENV['DATABASE_TEMPLATE']
    )
  end
end
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server