Skip to content

Commit

Permalink
added annotate_models, resource_controller, jrails and capified project
Browse files Browse the repository at this point in the history
  • Loading branch information
rdouble committed Jan 14, 2009
1 parent 9ae7e57 commit 7a49277
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitmodules
@@ -1,3 +1,12 @@
[submodule "vendor/plugins/userstamp"]
path = vendor/plugins/userstamp
url = git://github.com/delynn/userstamp.git
[submodule "vendor/plugins/jrails"]
path = vendor/plugins/jrails
url = git://github.com/aaronchi/jrails.git
[submodule "vendor/plugins/resource_controller"]
path = vendor/plugins/resource_controller
url = git://github.com/giraffesoft/resource_controller.git
[submodule "vendor/plugins/annotate_models"]
path = vendor/plugins/annotate_models
url = git://github.com/smtlaissezfaire/annotate_models.git
3 changes: 3 additions & 0 deletions Capfile
@@ -0,0 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
15 changes: 15 additions & 0 deletions config/deploy.rb
@@ -0,0 +1,15 @@
set :application, "set your application name here"
set :repository, "set your repository location here"

# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
# set :deploy_to, "/var/www/#{application}"

# If you aren't using Subversion to manage your source code, specify
# your SCM below:
# set :scm, :subversion

role :app, "your app-server here"
role :web, "your web-server here"
role :db, "your db-server here", :primary => true
25 changes: 25 additions & 0 deletions db/migrate/20090113233410_create_users.rb
@@ -0,0 +1,25 @@
class CreateUsers < ActiveRecord::Migration
def self.up
create_table :users do |t|
t.string :first_name
t.string :last_name
t.string :crypted_password
t.string :password_salt
t.string :persistence_token
t.string :perishable_token
t.integer :login_count, :null => false, :default => 0
t.string :email, :null => false, :default => ""
t.datetime :last_request_at
t.datetime :last_login_at
t.string :current_login_at
t.string :last_login_ip
t.string :current_login_ip
end
add_index :users, :perishable_token
add_index :users, :email
end

def self.down
drop_table :users
end
end
1 change: 1 addition & 0 deletions vendor/plugins/annotate_models
Submodule annotate_models added at deee2b
1 change: 1 addition & 0 deletions vendor/plugins/jrails
Submodule jrails added at d367aa
1 change: 1 addition & 0 deletions vendor/plugins/resource_controller
Submodule resource_controller added at 2b261b

0 comments on commit 7a49277

Please sign in to comment.