spec/postgresql/migrate/migrate_same_spec.rb in ridgepole-0.8.13 vs spec/postgresql/migrate/migrate_same_spec.rb in ridgepole-0.9.0.beta
- old
+ new
@@ -7,10 +7,10 @@
create_table "clubs", <%= i cond('>= 5.1',id: :serial) + {force: :cascade} %> do |t|
t.string "name", limit: 255, default: "", null: false
t.index ["name"], name: "idx_name", unique: true, <%= i cond(5.0, using: :btree) %>
end
- create_table "departments", primary_key: "dept_no", id: :string, limit: 4, force: :cascade do |t|
+ create_table "departments", primary_key: "dept_no", <%= i cond(">= 6.1", { id: { type: :string, limit: 4 } }, { id: :string, limit: 4 }) %>, force: :cascade do |t|
t.string "dept_name", limit: 40, null: false
t.index ["dept_name"], name: "idx_dept_name", unique: true, <%= i cond(5.0, using: :btree) %>
end
create_table "dept_emp", primary_key: ["emp_no", "dept_no"], force: :cascade do |t|