Sha256: 7d1b0192270273a1799b06a355aa834c9808ba6ad44f6ce6a6976416b0df3b15

Contents?: true

Size: 388 Bytes

Versions: 5

Compression:

Stored size: 388 Bytes

Contents

class CreateSettings < ActiveRecord::Migration
  def self.up
    create_table :settings do |t|
      t.string :name
      t.text :value
      t.text :description
      t.string :category
      t.string :settings_type
      t.text :default, :null => false
      t.timestamps
    end
    add_index :settings, :name, :unique => true
  end

  def self.down
    drop_table :settings
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foreman_discovery-1.0.0 test/foreman_app/db/migrate/20110628115422_create_settings.rb
foreman_discovery-1.0.0.rc4 test/foreman_app/db/migrate/20110628115422_create_settings.rb
foreman_discovery-1.0.0.rc3 test/foreman_app/db/migrate/20110628115422_create_settings.rb
foreman_discovery-1.0.0.rc2 test/foreman_app/db/migrate/20110628115422_create_settings.rb
foreman_discovery-1.0.0.rc1 test/foreman_app/db/migrate/20110628115422_create_settings.rb