Show More
Commit Description:
remove new.js from SAMPLE...
Commit Description:
remove new.js from SAMPLE this file must not be included in precompile option or else it will be always include in all pages (which is not what we want)
References:
File last commit:
Show/Diff file:
Action:
db/migrate/20081204122651_add_activated_to_users.rb | 25 lines | 430 B | text/x-ruby | RubyLexer |
class AddActivatedToUsers < ActiveRecord::Migration
def self.up
add_column :users, :activated, :boolean, :default => 0
User.reset_column_information
User.find(:all).each do |user|
# disable validation
class <<user
def valid?
return true
end
end
user.activated = true
user.save
end
end
def self.down
remove_column :users, :activated
end
end