mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-11-01 00:56:05 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
	
		
			241 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| require File.expand_path('app/helpers/database_helper')
 | |
| include DatabaseHelper
 | |
| 
 | |
| class AddBtreeGistExtension < ActiveRecord::Migration[4.2]
 | |
|   def up
 | |
|     if db_adapter_is? "PostgreSQL" then
 | |
|       enable_extension :btree_gist
 | |
|     end
 | |
|   end
 | |
| end
 |