Sha256: ce36124c2bf8d6b3cc2a2c87a6f42a681d393e9cfda4513452648d080c3d27c5

Contents?: true

Size: 275 Bytes

Versions: 1

Compression:

Stored size: 275 Bytes

Contents

class CreateSimpleContents < ActiveRecord::Migration[5.0]
  def change
    create_table :simple_contents do |t|
      t.string :key
      t.string :title
      t.text :body
      t.integer :priority

      t.timestamps
    end

    add_index :simple_contents, :key
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/simple_cms/templates/create_simple_contents.rb