GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Description: Open Source Ruby on Rails Project Gallery
Homepage: http://www.opensourcerails.com
Clone URL: git://github.com/jcnetdev/opensourcerails.git
Removing Automigrations
jcnetdev (author)
Mon Jul 28 15:11:20 -0700 2008
commit  94b9029bcd157c38ccbc8274db5ba84dba7ba24d
tree    07bfab4e00cd3598f7292cff90abfc7d571109a0
parent  4e553b30ba452620a246c48ece9d7221b4831d7f
...
165
166
167
168
 
169
170
171
...
165
166
167
 
168
169
170
171
0
@@ -165,7 +165,7 @@ class UsersController < ApplicationController
0
     # find user from auth code
0
     @user = User.find_by_forgot_password_hash(params[:auth])
0
     unless @user
0
- flash[:error] = "Reset Password URL was invalid. It may have expired. Please email us at support@launchsplash.com if you are still unable to log in."
0
+ flash[:error] = "Reset Password URL was invalid. It may have expired. Please email us at opensourcerails@gmail.com if you are still unable to log in."
0
       redirect_to new_session_url
0
       return
0
     end
...
109
110
111
 
 
 
 
 
112
113
114
...
109
110
111
112
113
114
115
116
117
118
119
0
@@ -109,6 +109,11 @@ class User < ActiveRecord::Base
0
   def send_forgot_password
0
     self.forgot_password_hash = encrypt("#{self.id}--#{Time.now}")
0
     self.forgot_password_expire = (AppConfig.forgot_password_expire||5).days.from_now
0
+ if self.crypted_password.blank?
0
+ self.password = "changeme"
0
+ self.password_confirmation = "changeme"
0
+ end
0
+
0
     self.save!
0
     
0
     UserMailer.deliver_send_password_reset(self)
...
87
88
89
90
91
92
93
94
95
96
97
98
...
87
88
89
 
 
 
 
 
 
90
91
92
0
@@ -87,12 +87,6 @@ Rails::Initializer.run do |config|
0
   # ------
0
   config.github_gem 'jcnetdev-app_config', :version => '>= 1.2'
0
   
0
- # auto_migrations
0
- # ------
0
- # Allows migrations to be run automatically based on updating the schema.rb
0
- # ------
0
- config.github_gem 'jcnetdev-auto_migrations', :version => '>= 1.2'
0
-
0
   # better_partials
0
   # ------
0
   # Adds a helper (partial) that wraps around render :partial. Pass local variables and blocks to your partials easily
...
1
 
2
3
4
5
...
1
2
3
4
5
6
0
@@ -1,4 +1,5 @@
0
 site_url: "http://127.0.0.1:3000"
0
+blog_url: "http://osrblog"
0
 
0
 sass_options:
0
   style: expanded
0
\ No newline at end of file
...
9
10
11
12
 
13
14
15
...
85
86
87
88
 
89
90
91
...
99
100
101
102
103
104
105
 
 
 
 
106
107
108
...
110
111
112
113
114
115
 
 
116
117
118
119
120
 
121
122
123
124
 
125
126
127
...
163
164
165
166
167
168
169
...
172
173
174
175
176
177
 
 
178
179
180
181
182
183
184
185
186
 
187
188
189
190
 
191
192
193
 
194
195
196
...
9
10
11
 
12
13
14
15
...
85
86
87
 
88
89
90
91
...
99
100
101
 
 
 
 
102
103
104
105
106
107
108
...
110
111
112
 
 
 
113
114
115
116
 
 
 
117
118
119
 
 
120
121
122
123
...
159
160
161
 
162
163
164
...
167
168
169
 
 
 
170
171
172
173
174
 
175
176
 
 
 
177
178
179
 
 
180
181
182
 
183
184
185
186
0
@@ -9,7 +9,7 @@
0
 #
0
 # It's strongly recommended to check this file into your version control system.
0
 
0
-ActiveRecord::Schema.define do
0
+ActiveRecord::Schema.define(:version => 20080728120230) do
0
 
0
   create_table "activities", :force => true do |t|
0
     t.datetime "created_at"
0
@@ -85,7 +85,7 @@ ActiveRecord::Schema.define do
0
     t.integer "author_id", :limit => 11
0
     t.string "short_description"
0
     t.integer "rating_count", :limit => 11
0
- t.integer "rating_total", :limit => 10, :precision => 10, :scale => 0
0
+ t.integer "rating_total", :limit => 10
0
     t.decimal "rating_avg", :precision => 10, :scale => 2
0
     t.text "cached_tag_list"
0
     t.integer "downloads", :limit => 11, :default => 0
0
@@ -99,10 +99,10 @@ ActiveRecord::Schema.define do
0
   end
0
 
0
   create_table "ratings", :force => true do |t|
0
- t.integer "rater_id", :limit => 11
0
- t.integer "rated_id", :limit => 11
0
- t.string "rated_type"
0
- t.integer "rating", :limit => 10, :precision => 10, :scale => 0
0
+ t.integer "rater_id", :limit => 11
0
+ t.integer "rated_id", :limit => 11
0
+ t.string "rated_type"
0
+ t.integer "rating", :limit => 10
0
     t.datetime "created_at"
0
   end
0
 
0
@@ -110,18 +110,14 @@ ActiveRecord::Schema.define do
0
   add_index "ratings", ["rated_type", "rated_id"], :name => "index_ratings_on_rated_type_and_rated_id"
0
 
0
   create_table "screenshots", :force => true do |t|
0
- t.integer "project_id", :limit => 11
0
- t.integer "owner_id", :limit => 11
0
-
0
+ t.integer "project_id", :limit => 11
0
+ t.integer "owner_id", :limit => 11
0
     t.string "screenshot_file_name"
0
     t.string "screenshot_content_type"
0
- t.integer "screenshot_file_size"
0
-
0
- # old junk
0
+ t.integer "screenshot_file_size", :limit => 11
0
     t.string "filename"
0
     t.string "content_type"
0
- t.integer "size"
0
-
0
+ t.integer "size", :limit => 11
0
     t.datetime "created_at"
0
     t.datetime "updated_at"
0
   end
0
@@ -163,7 +159,6 @@ ActiveRecord::Schema.define do
0
     t.boolean "show_alert", :default => false
0
     t.boolean "show_welcome", :default => true
0
     t.boolean "spammer", :default => false
0
-
0
     t.string "forgot_password_hash"
0
     t.datetime "forgot_password_expire"
0
   end
0
@@ -172,25 +167,20 @@ ActiveRecord::Schema.define do
0
   add_index "users", ["login"], :name => "index_users_on_login"
0
 
0
   create_table "versions", :force => true do |t|
0
- t.integer "project_id", :limit => 11
0
- t.integer "uploader_id", :limit => 11
0
-
0
+ t.integer "project_id", :limit => 11
0
+ t.integer "uploader_id", :limit => 11
0
     t.string "title"
0
     t.text "notes"
0
     t.string "link"
0
-
0
     t.string "download_file_name"
0
     t.string "download_content_type"
0
- t.integer "download_file_size"
0
-
0
- # old
0
+ t.integer "download_file_size", :limit => 11
0
     t.string "filename"
0
     t.string "content_type"
0
- t.integer "size"
0
-
0
+ t.integer "size", :limit => 11
0
     t.datetime "created_at"
0
     t.datetime "updated_at"
0
- t.integer "owner_id", :limit => 11
0
+ t.integer "owner_id", :limit => 11
0
   end
0
 
0
 end
...
2
3
4
5
6
 
7
8
9
10
11
12
13
 
 
14
15
16
17
18
...
2
3
4
 
 
5
6
7
8
9
10
 
 
11
12
13
 
14
15
16
0
@@ -2,17 +2,15 @@ require 'rubygems'
0
 require 'rake'
0
 
0
 class Rake::Task
0
- def overwrite(&block)
0
- @actions.clear
0
+ def add_task_after(&block)
0
     enhance(&block)
0
   end
0
 end
0
 
0
 # Overwrite migrate task
0
-Rake::Task["db:migrate"].overwrite do
0
- puts "Running Auto Migration and DB Seed..."
0
+Rake::Task["db:migrate"].add_task_after do
0
+ puts "Running DB Seed..."
0
   
0
- Rake::Task["db:auto:migrate"].invoke
0
   Rake::Task["db:seed"].invoke
0
 end
0
 #
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
 
 
 
 
...
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
0
@@ -1,14 +1,5 @@
0
-.blog h1 {
0
- font-size: 20px;
0
- font-weight: bold;
0
- margin-bottom: 1em; }
0
-.blog .post {
0
- padding-bottom: 15px; }
0
-.blog .post .entry {
0
- line-height: 1.4em; }
0
-.blog .post .entry p {
0
- color: #333;
0
- font-size: 1.05em; }
0
-.blog .post .entry p img {
0
- max-width: 100%;
0
- margin: 10px 0px; }
0
+.blog h1 { font-size: 20px; font-weight: bold; margin-bottom: 1em; }
0
+.blog .post { padding-bottom: 15px; }
0
+.blog .post .entry { line-height: 1.4em; }
0
+.blog .post .entry p { color: #333; font-size: 1.05em; }
0
+.blog .post .entry p img { max-width: 100%; margin: 10px 0px; }

Comments

    No one has commented yet.