Skip to content

Commit

Permalink
Add model and table
Browse files Browse the repository at this point in the history
  • Loading branch information
solt9029 committed May 6, 2023
1 parent 178551f commit aa0a068
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/hello.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Hello < ApplicationRecord
end
8 changes: 8 additions & 0 deletions db/migrate/20230506124139_create_hellos.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class CreateHellos < ActiveRecord::Migration[7.0]
def change
create_table :hellos do |t|

t.timestamps
end
end
end
11 changes: 11 additions & 0 deletions test/fixtures/hellos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html

# This model initially had no columns defined. If you add columns to the
# model remove the "{}" from the fixture names and add the columns immediately
# below each fixture, per the syntax in the comments below
#
one: {}
# column: value
#
two: {}
# column: value
7 changes: 7 additions & 0 deletions test/models/hello_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
require "test_helper"

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

0 comments on commit aa0a068

Please sign in to comment.