Sha256: 8ce92b5606fd1ddc6056001457377179a5549e90f6fa72ba963d22f74e80dcd7

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

class CreateActiveDynamicAttributesTable < ActiveRecord::Migration[4.2]

  def change
    create_table :active_dynamic_attributes do |t|
      t.integer :customizable_id, null: false
      t.string :customizable_type, limit: 50

      t.string :display_name, null: false
      t.string :name, null: false
      t.text :value
      t.integer :datatype, null: false

      t.timestamps
    end

    add_index :active_dynamic_attributes, :customizable_id
    add_index :active_dynamic_attributes, :customizable_type
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_dynamic-0.4.0 lib/active_dynamic/migration.rb