Sha256: 9341f07d85424c35ef087ff1f92da6b5c25b3c64c5a0bc185209939ffdb44fd9

Contents?: true

Size: 869 Bytes

Versions: 4

Compression:

Stored size: 869 Bytes

Contents

class CreateSimpleAdminCoreDataMigration < ActiveRecord::Migration[5.0]
  def change
    SimpleAdmin::EntityFieldType.create(name: :boolean,  template: 'simple_admin/fields/boolean')
    SimpleAdmin::EntityFieldType.create(name: :number,   template: 'simple_admin/fields/number')
    SimpleAdmin::EntityFieldType.create(name: :select,   template: 'simple_admin/fields/select')
    SimpleAdmin::EntityFieldType.create(name: :string,   template: 'simple_admin/fields/string')
    SimpleAdmin::EntityFieldType.create(name: :text,     template: 'simple_admin/fields/text')
    SimpleAdmin::EntityFieldType.create(name: :image,    template: 'simple_admin/fields/image')
    SimpleAdmin::EntityFieldType.create(name: :tags,     template: 'simple_admin/fields/tags')
    SimpleAdmin::EntityFieldType.create(name: :relation, template: 'simple_admin/fields/relation')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple-admin-0.2.0.pre.alpha lib/generators/templates/migrations/core_data_migration.rb
simple-admin-0.1.2.pre.alpha lib/generators/templates/migrations/core_data_migration.rb
simple-admin-0.1.1.pre.alpha lib/generators/templates/migrations/core_data_migration.rb
simple-admin-0.1.0.pre.alpha lib/generators/templates/migrations/core_data_migration.rb