Skip to content

Commit

Permalink
Only use seeds in dev.
Browse files Browse the repository at this point in the history
  • Loading branch information
benubois committed May 31, 2017
1 parent 35b887e commit 51d6f37
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions db/seeds.rb
@@ -1,25 +1,25 @@
if Rails.env.development?
Plan.create!(stripe_id: 'basic-monthly', name: "Monthly", price: 2, price_tier: 1)
Plan.create!(stripe_id: 'basic-yearly', name: "Yearly", price: 20, price_tier: 1)
Plan.create!(stripe_id: 'basic-monthly-2', name: "Monthly", price: 3, price_tier: 2)
Plan.create!(stripe_id: 'basic-yearly-2', name: "Yearly", price: 30, price_tier: 2)
Plan.create!(stripe_id: 'basic-monthly-3', name: "Monthly", price: 5, price_tier: 3)
Plan.create!(stripe_id: 'basic-yearly-3', name: "Yearly", price: 50, price_tier: 3)
Plan.create!(stripe_id: 'free', name: "Free", price: 0, price_tier: 3)
Plan.create!(stripe_id: 'timed', name: "Timed", price: 0, price_tier: 3)
Plan.create!(stripe_id: 'timed', name: "Timed", price: 0, price_tier: 2)
plan = Plan.create!(stripe_id: 'trial', name: "Trial", price: 0, price_tier: 3)
Plan.create!(stripe_id: 'basic-monthly', name: "Monthly", price: 2, price_tier: 1)
Plan.create!(stripe_id: 'basic-yearly', name: "Yearly", price: 20, price_tier: 1)
Plan.create!(stripe_id: 'basic-monthly-2', name: "Monthly", price: 3, price_tier: 2)
Plan.create!(stripe_id: 'basic-yearly-2', name: "Yearly", price: 30, price_tier: 2)
Plan.create!(stripe_id: 'basic-monthly-3', name: "Monthly", price: 5, price_tier: 3)
Plan.create!(stripe_id: 'basic-yearly-3', name: "Yearly", price: 50, price_tier: 3)
Plan.create!(stripe_id: 'free', name: "Free", price: 0, price_tier: 3)
Plan.create!(stripe_id: 'timed', name: "Timed", price: 0, price_tier: 3)
Plan.create!(stripe_id: 'timed', name: "Timed", price: 0, price_tier: 2)
plan = Plan.create!(stripe_id: 'trial', name: "Trial", price: 0, price_tier: 3)

SuggestedCategory.create!(name: "Popular")
SuggestedCategory.create!(name: "Tech")
SuggestedCategory.create!(name: "Design")
SuggestedCategory.create!(name: "Arts & Entertainment")
SuggestedCategory.create!(name: "Sports")
SuggestedCategory.create!(name: "Business")
SuggestedCategory.create!(name: "Food")
SuggestedCategory.create!(name: "News")
SuggestedCategory.create!(name: "Gaming")
SuggestedCategory.create!(name: "Popular")
SuggestedCategory.create!(name: "Tech")
SuggestedCategory.create!(name: "Design")
SuggestedCategory.create!(name: "Arts & Entertainment")
SuggestedCategory.create!(name: "Sports")
SuggestedCategory.create!(name: "Business")
SuggestedCategory.create!(name: "Food")
SuggestedCategory.create!(name: "News")
SuggestedCategory.create!(name: "Gaming")

if Rails.env.development?
u = User.new(email: "ben@benubois.com", password: 'passw0rd', password_confirmation: 'passw0rd', admin: true)
u.plan = plan
u.update_auth_token = true
Expand Down

0 comments on commit 51d6f37

Please sign in to comment.