質問編集履歴

1

文法の修正

2018/08/13 08:40

投稿

b_kazu
b_kazu

スコア26

test CHANGED
File without changes
test CHANGED
@@ -72,37 +72,21 @@
72
72
 
73
73
  establish_connection(ENV['DATABASE_URL'])
74
74
 
75
- attr_reader :second
76
-
77
- def initialize
78
-
79
- @second = Second.all
80
-
81
- end
82
-
83
75
  end
84
76
 
85
77
 
86
78
 
87
79
  class First < ActiveRecord::Base
88
80
 
89
- establish_connection(ENV['HEROKU_POSTGRESQL_<color>_URL'])
81
+ establish_connection(ENV['HEROKU_POSTGRESQL_<color>_URL'])
90
-
91
- attr_reader :first
92
-
93
- def initialize
94
-
95
- @first = First.all
96
-
97
- end
98
82
 
99
83
  end
100
84
 
101
85
 
102
86
 
103
- @second = Second.new.second
87
+ @second = Second.all
104
88
 
105
- @first = First.new.first
89
+ @first = First.all
106
90
 
107
91
 
108
92