Sha256: bd17960487b359d02d17c5130c3a40dc53c84ba6d792e5ed0b21cd5a9686b7a4
Contents?: true
Size: 602 Bytes
Versions: 3
Compression:
Stored size: 602 Bytes
Contents
module Migrations module RewardMigrator def create_reward_migration generate 'migration', "create_referable_rewards" add_reward_migration_details end private def add_reward_migration_details return unless migration_created?('create_referable_rewards') inject_into_file(last_migration, after: 'do |t|') do <<~TEXT \n t.string "reward", null: false t.integer "referrals_required", null: false t.integer "acquireable_by", null: false t.timestamps TEXT end end end end
Version data entries
3 entries across 3 versions & 1 rubygems