我重命名表
rename_table :posts, :messages
但是 rails 会生成 posts_id_seq 和 posts.id 修饰符:
db=# \d+ posts
Table "public.posts"
Column | Type | Modifiers | Storage | Description
id | integer | not null default nextval('posts_id_seq'::regclass) | plain |
Indexes:
"posts_pkey" PRIMARY KEY, btree (id)
如何更正重命名表?
红宝石 1.8.7
导轨 2.3