Sha256: f8f064838b8a3b3317f843c8ddc3737a182e919f0e9246805c98ef397094f8a2

Contents?: true

Size: 228 Bytes

Versions: 27

Compression:

Stored size: 228 Bytes

Contents

class CreateBlocks < ActiveRecord::Migration[6.1]
  def change
    create_table :blocks do |t|
      t.references :blockable, polymorphic: true
      t.string :name
      t.integer :position
      t.timestamps
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
headmin-0.2.9 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.9 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.8 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.7 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.6 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.5 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.4 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.3 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.2 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.1 lib/generators/templates/migrations/create_blocks.rb
headmin-0.5.0 lib/generators/templates/migrations/create_blocks.rb
headmin-0.4.2 lib/generators/templates/migrations/create_blocks.rb
headmin-0.4.1 lib/generators/templates/migrations/create_blocks.rb
headmin-0.4.0 lib/generators/templates/migrations/create_blocks.rb
headmin-0.3.4 lib/generators/templates/migrations/create_blocks.rb
headmin-0.3.3 lib/generators/templates/migrations/create_blocks.rb
headmin-0.3.2 lib/generators/templates/migrations/create_blocks.rb
headmin-0.3.1 lib/generators/templates/migrations/create_blocks.rb
headmin-0.2.8 lib/generators/templates/migrations/create_blocks.rb
headmin-0.2.7 lib/generators/templates/migrations/create_blocks.rb