Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sru #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Sru #98

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions LearningRails/app/models/article.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Article < ActiveRecord::Base
end
10 changes: 10 additions & 0 deletions LearningRails/db/migrate/20160208162811_create_articles.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateArticles < ActiveRecord::Migration
def change
create_table :articles do |t|
t.string :feedback_id
t.binary :attachment

t.timestamps null: false
end
end
end
1 change: 1 addition & 0 deletions LearningRails/sru.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hi
9 changes: 9 additions & 0 deletions LearningRails/test/fixtures/articles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html

one:
feedback_id: MyString
attachment:

two:
feedback_id: MyString
attachment:
7 changes: 7 additions & 0 deletions LearningRails/test/models/article_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require 'test_helper'

class ArticleTest < ActiveSupport::TestCase
# test "the truth" do
# assert true
# end
end