Sha256: 6e202cbcc2e8299972701fc78d9e8c084f2f159ceb9561331a2f1ff53c310866
Contents?: true
Size: 737 Bytes
Versions: 10
Compression:
Stored size: 737 Bytes
Contents
class CreateThecoreSettings < ActiveRecord::Migration[5.0] def change create_table :thecore_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 elsif defined?(Shrine) t.text :file_data end t.timestamps end add_index :thecore_settings, :key add_index :thecore_settings, [:ns, :key], unique: true end end
Version data entries
10 entries across 6 versions & 1 rubygems