質問編集履歴

3

属性について

2018/08/11 00:59

投稿

AreyouKewpie
AreyouKewpie

スコア9

test CHANGED
@@ -1 +1 @@
1
- データベースに配列を登録する
1
+ データベースに配列を登録しようとするとtIDENTIFIERエラーが出てしまう
test CHANGED
@@ -94,4 +94,18 @@
94
94
 
95
95
 
96
96
 
97
+ nameの属性についてです。
98
+
99
+ Post.columns_hash['name'].type
100
+
101
+ => :text
102
+
103
+ となりましたがこれで大丈夫でしょうか??
104
+
105
+
106
+
107
+
108
+
109
+
110
+
97
111
  よろしくお願い致します。

2

テーブル定義はこれで大丈夫でしょうか?

2018/08/11 00:59

投稿

AreyouKewpie
AreyouKewpie

スコア9

test CHANGED
File without changes
test CHANGED
@@ -78,4 +78,20 @@
78
78
 
79
79
 
80
80
 
81
+ Schema | Name | Type | Owner
82
+
83
+ --------+----------------------+----------+----------------
84
+
85
+ public | ar_internal_metadata | table |
86
+
87
+ public | posts | table |
88
+
89
+ public | posts_id_seq | sequence |
90
+
91
+ public | schema_migrations | table |
92
+
93
+ (4 rows)
94
+
95
+
96
+
81
97
  よろしくお願い致します。

1

データベースのバージョンを確認しました。

2018/08/10 07:28

投稿

AreyouKewpie
AreyouKewpie

スコア9

test CHANGED
File without changes
test CHANGED
@@ -72,6 +72,10 @@
72
72
 
73
73
  rails 5.2.0
74
74
 
75
+ PostgreSQL
76
+
77
+ PG version 10.4
78
+
75
79
 
76
80
 
77
81
  よろしくお願い致します。