Sha256: 7397fabec32985570f4b9667a5d33b6dcdec8908aa1e47b8cee17dcf0c15ff17

Contents?: true

Size: 322 Bytes

Versions: 1

Compression:

Stored size: 322 Bytes

Contents

class <%= class_name %> < ActiveRecord::Migration
  def self.up
    create_table :settings, :force => true do |t|
      t.string :var, :null => false
      t.text   :value, :null => true
      t.timestamps
    end
    
    add_index :settings, :var, :uniq => true
  end

  def self.down
    drop_table :settings
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-settings-1.0.0 generators/settings_migration/templates/migration.rb