Sha256: 58e50904e72a37c174044cb1f69dc54f45d69ba6b00519c59b607bb78ae1fd79

Contents?: true

Size: 243 Bytes

Versions: 5

Compression:

Stored size: 243 Bytes

Contents

class GovernorAddThinkingSphinx < ActiveRecord::Migration
  def self.up
    add_column :<%= mapping.plural %>, :delta, :boolean, :default => true, :null => false
  end

  def self.down
    remove_column :<%= mapping.plural %>, :delta
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
governor_thinking_sphinx-0.1.4 lib/generators/governor/templates/migrations/add_thinking_sphinx.rb
governor_thinking_sphinx-0.1.3 lib/generators/governor/templates/migrations/add_thinking_sphinx.rb
governor_thinking_sphinx-0.1.2 lib/generators/governor/templates/migrations/add_thinking_sphinx.rb
governor_thinking_sphinx-0.1.1 lib/generators/governor/templates/migrations/add_thinking_sphinx.rb
governor_thinking_sphinx-0.1.0 lib/generators/governor/templates/migrations/add_thinking_sphinx.rb