Sha256: d43f4cc6cbd8a6d6e38538a1b7ae45d2a5c721c935c4e1187a20e6395d66e568
Contents?: true
Size: 695 Bytes
Versions: 29
Compression:
Stored size: 695 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
29 entries across 29 versions & 3 rubygems