diff options
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index 62b0f51bb2..40dc105d5e 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -141,6 +141,11 @@ module ActiveRecord # name varchar(80) # ) # + # ====== Add a custom primary key column + # create_table(:objects, :id => false) do |t| + # t.string :slug, :primary => true + # end + # # ====== Do not add a primary key column # create_table(:categories_suppliers, :id => false) do |t| # t.column :category_id, :integer |