Sha256: a4f364b0cd9c7035543b647b16bbe39e6897271d37f9d80f86f65e661129490b

Contents?: true

Size: 394 Bytes

Versions: 4

Compression:

Stored size: 394 Bytes

Contents

class <%= migration_name %> < ActiveRecord::Migration
  def self.up
    create_table "<%= table_name %>" do |t|
      t.string :name
      t.string :field_type
      t.text :value
      t.string :category
      t.text :description
      t.boolean :mce_editable
    end
    add_index :<%= table_name %>, :name, :unique => true
  end

  def self.down
    drop_table "<%= table_name %>"
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
somatics3-0.0.10 lib/generators/somatics/settings_controller/templates/migration.rb
somatics3-generators-0.0.10 lib/generators/somatics/settings_controller/templates/migration.rb
somatics3-generators-0.0.9 lib/generators/somatics/settings_controller/templates/migration.rb
somatics3-generators-0.0.8 lib/generators/somatics/settings_controller/templates/migration.rb