Show More
Commit Description:
add golden submit button...
Commit Description:
add golden submit button - When the user submit more than or equal to 100 times the submit button will turn gold - Add golden-btn tag in applications.css.scss
References:
File last commit:
Show/Diff file:
Action:
db/migrate/015_add_status_to_tasks.rb | 17 lines | 369 B | text/x-ruby | RubyLexer |
class AddStatusToTasks < ActiveRecord::Migration
def self.up
add_column :tasks, :status, :integer
add_column :tasks, :updated_at, :datetime
Task.reset_column_information
Task.all.each do |task|
task.status_complete
task.save
end
end
def self.down
remove_column :tasks, :updated_at
remove_column :tasks, :status
end
end