activerecord4-redshift-adapter icon indicating copy to clipboard operation
activerecord4-redshift-adapter copied to clipboard

sortkey, distkey options for columns

Open inbeom opened this issue 8 years ago • 0 comments

This adds sortkey, distkey options for columns in tables newly created.

create_table :products, id: false do |t|
  t.string :product_id, limit: 256, sortkey: true, distkey: true
end
# => CREATE TABLE "products" ("product_id" varchar(256) SORTKEY DISTKEY)

inbeom avatar Sep 01 '16 10:09 inbeom