Sha256: 3f246653b8b58e65c903e154f86d86d047d889720528a3edc01271fdaa2278de

Contents?: true

Size: 439 Bytes

Versions: 4

Compression:

Stored size: 439 Bytes

Contents

class CreateSimpleAdminEntityFields < ActiveRecord::Migration[5.0]
  def change
    create_table :simple_admin_entity_fields do |t|
      t.string :name
      t.string :label

      t.integer :entity_field_type_id, null: false
      t.integer :entity_id, null: false

      t.integer :presentation
      t.integer :sort_order, default: 0

      t.boolean :search_indexable, default: false

      t.timestamps null: false
    end
  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_migrations/entity_fields_migration.rb
simple-admin-0.1.2.pre.alpha lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb
simple-admin-0.1.1.pre.alpha lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb
simple-admin-0.1.0.pre.alpha lib/generators/templates/migrations/core_migrations/entity_fields_migration.rb