Sha256: 3f7cea12863b0c63aec68f215f61750d976cbe0fb48b22dd397488b835bc2e2d

Contents?: true

Size: 302 Bytes

Versions: 31

Compression:

Stored size: 302 Bytes

Contents

class CreateFields < ActiveRecord::Migration[6.1]
  def change
    create_table :fields do |t|
      t.references :fieldable, polymorphic: true
      t.string :name
      t.string :field_type
      t.integer :parent_id
      t.integer :position
      t.text :value
      t.timestamps
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
headmin-0.6.3 lib/generators/templates/migrations/create_fields.rb
headmin-0.2.9 lib/generators/templates/migrations/create_fields.rb
headmin-0.6.2 lib/generators/templates/migrations/create_fields.rb
headmin-0.6.1 lib/generators/templates/migrations/create_fields.rb
headmin-0.6.0 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.9 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.8 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.7 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.6 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.5 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.4 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.3 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.2 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.1 lib/generators/templates/migrations/create_fields.rb
headmin-0.5.0 lib/generators/templates/migrations/create_fields.rb
headmin-0.4.2 lib/generators/templates/migrations/create_fields.rb
headmin-0.4.1 lib/generators/templates/migrations/create_fields.rb
headmin-0.4.0 lib/generators/templates/migrations/create_fields.rb
headmin-0.3.4 lib/generators/templates/migrations/create_fields.rb
headmin-0.3.3 lib/generators/templates/migrations/create_fields.rb