3
votes

In Rails 3 ActiveRecord create_table is it possible to include the option :id => false. For example

create_table :posts, :id => false do |t|
...
end

but is it possible to remove the :id column on an existing table in a subsequent up migration?

1

1 Answers

10
votes

You should be able to remove the column just like any other non-id column:

remove_column :posts, :id