diff --git a/app/models/external_summary.rb b/app/models/external_summary.rb new file mode 100644 index 0000000..a692245 --- /dev/null +++ b/app/models/external_summary.rb @@ -0,0 +1,3 @@ +class ExternalSummary < ActiveRecord::Base + acts_as_votable +end diff --git a/db/migrate/20140112235710_create_external_summaries.rb b/db/migrate/20140112235710_create_external_summaries.rb new file mode 100644 index 0000000..3abf14d --- /dev/null +++ b/db/migrate/20140112235710_create_external_summaries.rb @@ -0,0 +1,11 @@ +class CreateExternalSummaries < ActiveRecord::Migration + def change + create_table :external_summaries do |t| + t.text :url + t.string :category + t.string :title + + t.timestamps + end + end +end diff --git a/spec/factories/external_summaries.rb b/spec/factories/external_summaries.rb new file mode 100644 index 0000000..fef871b --- /dev/null +++ b/spec/factories/external_summaries.rb @@ -0,0 +1,9 @@ +# Read about factories at https://github.com/thoughtbot/factory_girl + +FactoryGirl.define do + factory :external_summary do + url "MyText" + category "MyString" + title "MyString" + end +end diff --git a/spec/models/external_summary_spec.rb b/spec/models/external_summary_spec.rb new file mode 100644 index 0000000..7c9d6d0 --- /dev/null +++ b/spec/models/external_summary_spec.rb @@ -0,0 +1,5 @@ +require 'spec_helper' + +describe ExternalSummary do + pending "add some examples to (or delete) #{__FILE__}" +end