Sha256: 22750d5469386f96e05eff255485c8d0971c87aeefd1e46622edf8d77f8bbcc2

Contents?: true

Size: 380 Bytes

Versions: 8

Compression:

Stored size: 380 Bytes

Contents

class AddReferralsToAstrochimpSignup < ActiveRecord::Migration
  def change
    add_column :astrochimp_signups, :referral_id, :integer
    add_column :astrochimp_signups, :referral_code, :string
    add_column :astrochimp_signups, :referral_count, :integer, default: 0

    add_index  :astrochimp_signups, :referral_id
    add_index  :astrochimp_signups, :referral_code
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
astrochimp-0.2.5 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.2.4 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.2.3 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.2.2 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.2.1 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.2.0 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.1.3 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb
astrochimp-0.1.2 db/migrate/20121101211218_add_referrals_to_astrochimp_signup.rb