Permalink
Browse files

leave the schema alone

  • Loading branch information...
1 parent 90cdac5 commit 4aa7b539b12798003629852d242ed7a457375056 @will-r will-r committed Aug 16, 2011
Showing with 23 additions and 8 deletions.
  1. +22 −0 db/schema.rb
  2. +1 −8 lib/tasks/database.rake
  3. 0 {vendor/plugins/dataset → lib}/tasks/dataset.rake
View
@@ -11,6 +11,22 @@
ActiveRecord::Schema.define(:version => 20100810151922) do
+ create_table "assets", :force => true do |t|
+ t.string "caption"
+ t.string "title"
+ t.string "asset_file_name"
+ t.string "asset_content_type"
+ t.integer "asset_file_size"
+ t.integer "created_by_id"
+ t.integer "updated_by_id"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ t.string "uuid"
+ t.integer "original_width"
+ t.integer "original_height"
+ t.string "original_extension"
+ end
+
create_table "config", :force => true do |t|
t.string "key", :limit => 40, :default => "", :null => false
t.string "value", :default => ""
@@ -35,6 +51,12 @@
t.integer "lock_version", :default => 0
end
+ create_table "page_attachments", :force => true do |t|
+ t.integer "asset_id"
+ t.integer "page_id"
+ t.integer "position"
+ end
+
create_table "page_fields", :force => true do |t|
t.integer "page_id"
t.string "name"
@@ -18,15 +18,8 @@ namespace :db do
end
end
- task :initalize => :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] ")
- Rake::Task["db:schema:load"].invoke
- end
- end
-
desc "Bootstrap your database for Radiant."
- task :bootstrap => :initalize do
+ task :bootstrap => :remigrate do
require 'radiant/setup'
Radiant::Setup.bootstrap(
:admin_name => ENV['ADMIN_NAME'],

0 comments on commit 4aa7b53

Please sign in to comment.