You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In an app, in a migration, specify a check constraint, along these lines: ActiveRecord::Base.connection.execute('ALTER TABLE test_posts add CONSTRAINT foo_is_json CHECK(foo is json)')
Configure the app to use schema format SQL. In config/application.rb specify: config.active_record.schema_format = :sql
Expected behavior
After a db:migrate, the alter table ... add constraint ... check ... should appear in db/structure.sql.
Actual behavior
The constraint is omitted.
System configuration
Rails version: 6.1.4.1
Oracle enhanced adapter version: 6.1.4
Ruby version: 2.7.4p191
Oracle Database version: 19c enterprise
The text was updated successfully, but these errors were encountered:
benny-burkhart
pushed a commit
to benny-burkhart/oracle-enhanced
that referenced
this issue
Oct 21, 2021
Steps to reproduce
In an app, in a migration, specify a check constraint, along these lines:
ActiveRecord::Base.connection.execute('ALTER TABLE test_posts add CONSTRAINT foo_is_json CHECK(foo is json)')
Configure the app to use schema format SQL. In config/application.rb specify:
config.active_record.schema_format = :sql
Expected behavior
After a
db:migrate
, thealter table ... add constraint ... check ...
should appear in db/structure.sql.Actual behavior
The constraint is omitted.
System configuration
Rails version: 6.1.4.1
Oracle enhanced adapter version: 6.1.4
Ruby version: 2.7.4p191
Oracle Database version: 19c enterprise
The text was updated successfully, but these errors were encountered: