mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 08:26:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			9 lines
		
	
	
	
		
			248 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			9 lines
		
	
	
	
		
			248 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class CreateSettingsTable < ActiveRecord::Migration[4.2]
 | |
|   def change
 | |
|     create_table :settings do |t|
 | |
|       t.text :type, null: false
 | |
|       t.jsonb :values, null: false, default: {}
 | |
|     end
 | |
|     add_index(:settings, :type, unique: true)
 | |
|   end
 | |
| end
 |