Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #spec/support/controller_helper.rb
- module ControllerHelper
- def seed_categories
- TransactionCategory.find_or_create_by(name: 'Complete your profile', rate: 250, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Add @HonestDocs on your LINE app', rate: 50)
- TransactionCategory.find_or_create_by(name: 'Invite a friend', rate: 50, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Share an article on Facebook', rate: 20)
- TransactionCategory.find_or_create_by(name: 'Ask promo question', rate: -200, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Ask regular question', rate: -100, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Hospital booking', rate: -250, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Manual Hospital booking', rate: -250)
- TransactionCategory.find_or_create_by(name: 'Buy Products from our Health Shop', rate: 0)
- TransactionCategory.find_or_create_by(name: 'Top up Health Coins', rate: 0)
- TransactionCategory.find_or_create_by(name: 'Miscellaneous', rate: 0)
- TransactionCategory.find_or_create_by(name: 'Refund', rate: 0)
- TransactionCategory.find_or_create_by(name: 'Cash Withdrawal', rate: 0)
- TransactionCategory.find_or_create_by(name: 'New User Registration', rate: 150, transaction_type: :automatic)
- TransactionCategory.find_or_create_by(name: 'Write a hospital review', rate: 100, transaction_type: :automatic)
- end
- end
Add Comment
Please, Sign In to add comment