Skip to content

Commit

Permalink
Merge 6c5100a into 89e2b9a
Browse files Browse the repository at this point in the history
  • Loading branch information
bwootten committed Jul 20, 2015
2 parents 89e2b9a + 6c5100a commit 9275ee8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions db/migrate/20150720182518_create_feeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ class CreateFeeds < ActiveRecord::Migration
def change
create_table :feeds do |t|
t.string :feed_url
t.string :url
t.timestamps
end
end
Expand Down
3 changes: 1 addition & 2 deletions db/migrate/20150720182645_create_subscriptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ class CreateSubscriptions < ActiveRecord::Migration
def change
create_table :subscriptions do |t|
t.references :feed
t.references :Section
t.string :url
t.references :section
t.string :name
t.timestamps
end
Expand Down
8 changes: 1 addition & 7 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@
default_section = Section.create!(title: 'Default')

File.foreach('db/defaultfeeds.txt').each_slice(3) do |feed|
p '-'*50
print "\n\n\n\n\n"
p feed[0].chomp
p feed[1].chomp
print "\n\n\n\n\n"
p '-'*50
default_section.subscriptions.create(name: feed[0].chomp, set_feed: feed[1].chomp)
default_section.subscriptions.create(name: feed[0].chomp,)
end

0 comments on commit 9275ee8

Please sign in to comment.