Sha256: 168f01585fe77b73fe8b88a8b47bb4266e2c111d30236790b62916bdce205c34

Contents?: true

Size: 482 Bytes

Versions: 3

Compression:

Stored size: 482 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 :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

3 entries across 3 versions & 1 rubygems

Version Path
active_dynamic-0.3.0 lib/active_dynamic/migration.rb
active_dynamic-0.2.0 lib/active_dynamic/migration.rb
active_dynamic-0.1.0 lib/active_dynamic/migration.rb