Sha256: 5694bf4963dd9031750f12ab05ad37d22d1439156e3853db6e67e4fae26c2307

Contents?: true

Size: 331 Bytes

Versions: 6

Compression:

Stored size: 331 Bytes

Contents

class CreateCardboardSettings < ActiveRecord::Migration
  def change
    create_table :cardboard_settings do |t|
      t.string :name
      t.text :value
      t.text :default_value
      t.text :description
      t.string :hint
      t.string :format, default: "string"

    end
    add_index :cardboard_settings, :name
  end
end

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 lib/generators/cardboard/install/templates/migrations/4_create_cardboard_settings.rb
cardboard_cms-0.1.8 test/dummy/db/migrate/20130522151401_create_cardboard_settings.rb
cardboard_cms-0.1.6 lib/generators/cardboard/install/templates/migrations/4_create_cardboard_settings.rb
cardboard_cms-0.1.6 test/dummy/db/migrate/20130522151401_create_cardboard_settings.rb
cardboard_cms-0.1.4 lib/generators/cardboard/install/templates/migrations/4_create_cardboard_settings.rb
cardboard_cms-0.1.4 test/dummy/db/migrate/20130522151401_create_cardboard_settings.rb