Sha256: 69528edea925eaf9f0f299ede12db8342a6a8e97899e4fdbcff48c5469babbc1

Contents?: true

Size: 288 Bytes

Versions: 4

Compression:

Stored size: 288 Bytes

Contents

class CreateDynamicFieldsTables < ActiveRecord::Migration[7.1]
  def change
    create_table :dynamic_fields_attributes do |t|
      t.references :record, polymorphic: true, null: false
      t.string :name
      t.string :type
      t.string :value

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dynamic_fields_rails-0.1.3 db/migrate/20240729120435_create_dynamic_fields_tables.rb
dynamic_fields_rails-0.1.2 db/migrate/20240729120435_create_dynamic_fields_tables.rb
dynamic_fields_rails-0.1.1 db/migrate/20240729120435_create_dynamic_fields_tables.rb
dynamic_fields_rails-0.1.0 db/migrate/20240729120435_create_dynamic_fields_tables.rb