Class: CreateGoogleFunctions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/rails/generators/google/model/templates/create_google_functions.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/rails/generators/google/model/templates/create_google_functions.rb', line 13

def down
  drop_table :google_functions
end

.upObject



4
5
6
7
8
9
10
11
# File 'lib/rails/generators/google/model/templates/create_google_functions.rb', line 4

def up
  create_table :google_functions do |t|
    t.string :name, :limit => 255
    t.integer :version
    t.timestamp :next_updated_at
    t.timestamps
  end
end