Sha256: 05ecf081ede0c68a15478a71b38107cd834afd6d5c7d1183ce8edcffb6ddfa54

Contents?: true

Size: 400 Bytes

Versions: 4

Compression:

Stored size: 400 Bytes

Contents

class CreateSettingsTable < ActiveRecord::Migration
  def self.up
    create_table :settings, :force => true do |t|
      t.string  :key, :null => false
      t.string  :alt
      t.text    :value
      t.boolean :editable
      t.boolean :deletable
      t.boolean :deleted      
      t.timestamps
    end
    
    add_index :settings, :key
  end

  def self.down
    drop_table :settings
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
settler-1.2.4 lib/generators/settler/templates/migration.rb
settler-1.2.3 lib/generators/settler/templates/migration.rb
settler-1.2.2 lib/generators/settler/templates/migration.rb
settler-1.2.1 lib/generators/settler/templates/migration.rb