Sha256: fc27017696a49bd01e4a60520816d0332e84cef6e0c37271aa94fe43aeca8242

Contents?: true

Size: 398 Bytes

Versions: 11

Compression:

Stored size: 398 Bytes

Contents

class <%= class_name %> < 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

11 entries across 11 versions & 1 rubygems

Version Path
settler-1.2.4 generators/settler/templates/migration.rb
settler-1.2.3 generators/settler/templates/migration.rb
settler-1.2.2 generators/settler/templates/migration.rb
settler-1.2.1 generators/settler/templates/migration.rb
settler-1.2.0 generators/settler/templates/migration.rb
settler-1.1.1 generators/settler/templates/migration.rb
settler-1.1.0 generators/settler/templates/migration.rb
settler-1.0.3 generators/settler/templates/migration.rb
settler-1.0.2 generators/settler/templates/migration.rb
settler-1.0.1 generators/settler/templates/migration.rb
settler-1.0.0 generators/settler/templates/migration.rb