Class: CreateHelperSnippets

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/wizard_of_awes/install/templates/create_helper_snippets.rb

Class Method Summary collapse

Class Method Details

.downObject



10
11
12
# File 'lib/generators/wizard_of_awes/install/templates/create_helper_snippets.rb', line 10

def self.down
  drop_table :helper_snippets
end

.upObject



2
3
4
5
6
7
8
# File 'lib/generators/wizard_of_awes/install/templates/create_helper_snippets.rb', line 2

def self.up
  create_table :helper_snippets do |t|
    t.string :slug
    t.text :body
    t.timestamps
  end
end