Sha256: c4c316549d9a562255d28cd055483711d7c1e72cfb1e72e090146838fb46b025
Contents?: true
Size: 553 Bytes
Versions: 5
Compression:
Stored size: 553 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 t.text :value t.integer :datatype t.boolean :required, null: false, default: false t.timestamps end add_index :active_dynamic_attributes, :customizable_id add_index :active_dynamic_attributes, :customizable_type end end
Version data entries
5 entries across 5 versions & 1 rubygems