Permalink
Browse files

Store the default schema and database config, update the docs

  • Loading branch information...
1 parent b7b255c commit 039f20b2a6b18ec2227eaee0cebfe9b8cc558e09 @jamesu committed Oct 2, 2011
Showing with 433 additions and 11 deletions.
  1. +0 −4 .gitignore
  2. +3 −3 INSTALL.markdown
  3. +4 −4 UPGRADE.markdown
  4. +19 −0 config/database.yml
  5. +407 −0 db/schema.rb
View
@@ -1,7 +1,4 @@
.DS_Store
-config/app_keys.yml
-config/config.yml
-config/database.yml
config/deploy.rb
coverage
log/*.log
@@ -14,4 +11,3 @@ tmp/restart.txt
tmp/**/*
public/themes/*
*.sqlite3
-db/schema.rb
View
@@ -15,8 +15,8 @@ To install all required gems, simply run the following:
The following configuration files need to be present:
-* `config/database.yml` (example at `config/examples/database.yml.template`)
-* `config/app_keys.yml` (generated by setup script)
+* `config/database.yml` (the database configuration)
+* `config/railscollab.yml` (the main configuration)
## Deployment
@@ -56,7 +56,7 @@ It accepts the following environment variables:
So from scratch, you'd likely do something like to following to install:
1. Create a 'railscollab' database
-2. Create a config/database.yml file based on config/example/database.yml
+2. Modify config/database.yml to suit your requirements
3. Run the snippit below
4. Insert the previously mentioned VirtualHost configuration into your Phusion Passenger installation.
5. Go to http://servername and login using your supplied credentials
View
@@ -1,13 +1,13 @@
# Upgrading from a previous version of RailsCollab
-The first thing you should do is migrate the database schema to ensure RailsCollab's models
+The only thing you should do is migrate the database schema to ensure RailsCollab's models
continue to function. This can be achieved by running the following command:
rake db:migrate
-Next you should reload your configuration schema, in case any new configuration options have
-been added. This can be accomplished by running the following commands:
+## Change in file storage location
- rake db:railscollab:reload_config
+If you are updating from the rails2 version of RailsCollab, the default location for Company logos, User avatars, and File data has changed. These are now located in "logo", "avatar" and "data".
+If you have any existing files you should be able to copy them to the new location to make them work again.
Thats it!
View
@@ -0,0 +1,19 @@
+# SQLite version 3.x
+# gem install sqlite3-ruby (not necessary on OS X Leopard)
+development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ timeout: 5000
+
+# Warning: The database defined as "test" will be erased and
+# re-generated from your development database when you run "rake".
+# Do not set this db to the same as development or production.
+test:
+ adapter: sqlite3
+ database: db/test.sqlite3
+ timeout: 5000
+
+production:
+ adapter: sqlite3
+ database: db/production.sqlite3
+ timeout: 5000
Oops, something went wrong. Retry.

0 comments on commit 039f20b

Please sign in to comment.