Sha256: 428602c3053eecc624b28f774c7f2295ff3a4117a329d4c25acd4671b95ef6d0

Contents?: true

Size: 282 Bytes

Versions: 9

Compression:

Stored size: 282 Bytes

Contents

class CreateContentsCoreItems < ActiveRecord::Migration[5.0]
  def change
    create_table :contents_core_items do |t|
      t.string :type
      t.string :name, null: false, default: 'data'
      t.integer :block_id
    end

    add_index :contents_core_items, :block_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
contents_core-0.1.9 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.8 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.7 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.6 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.5 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.4 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.2 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.1 db/migrate/20170414173610_create_contents_core_items.rb
contents_core-0.1.0 db/migrate/20170414173610_create_contents_core_items.rb