Sha256: 9ced8581c528c9f8b9d3e225620b858427c1722e5746f09933b113fd09dd9311
Contents?: true
Size: 696 Bytes
Versions: 8
Compression:
Stored size: 696 Bytes
Contents
class CreateRailsAdminSettings < ActiveRecord::Migration[5.0] def change create_table :rails_admin_settings do |t| t.boolean :enabled, default: true t.string :kind, null: false, default: 'string' t.string :ns, default: 'main' t.string :key, null: false if Object.const_defined?('Geocoder') t.float :latitude t.float :longitude end t.text :raw t.string :label if defined?(Paperclip) t.attachment :file elsif defined?(CarrierWave) t.string :file end t.timestamps end add_index :rails_admin_settings, :key add_index :rails_admin_settings, [:ns, :key], unique: true end end
Version data entries
8 entries across 8 versions & 1 rubygems