Skip to content

Commit dfe5bfc

Browse files
committed
Merge pull request rsim#528 from Verdacom/grant_create_view_to_db_user
Grant create view privilege to db user
2 parents b994bae + 46871ce commit dfe5bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/active_record/connection_adapters/oracle_enhanced_database_tasks.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ def create
2424
connection.execute "GRANT unlimited tablespace TO #{@config['username']}"
2525
connection.execute "GRANT create session TO #{@config['username']}"
2626
connection.execute "GRANT create table TO #{@config['username']}"
27+
connection.execute "GRANT create view TO #{@config['username']}"
2728
connection.execute "GRANT create sequence TO #{@config['username']}"
2829
end
2930

@@ -58,4 +59,3 @@ def structure_load(filename)
5859
end
5960

6061
ActiveRecord::Tasks::DatabaseTasks.register_task(/(oci|oracle)/, ActiveRecord::ConnectionAdapters::OracleEnhancedAdapter::DatabaseTasks)
61-

0 commit comments

Comments
 (0)