Class: ActiveNutrition::Migrations::MigrationsTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/active_nutrition/migrations/00000000001_migrations_table.rb

Class Method Summary collapse

Class Method Details

.downObject



13
14
15
# File 'lib/active_nutrition/migrations/00000000001_migrations_table.rb', line 13

def self.down
  drop_table :active_nutrition_migrations
end

.upObject



6
7
8
9
10
11
# File 'lib/active_nutrition/migrations/00000000001_migrations_table.rb', line 6

def self.up
  create_table :active_nutrition_migrations do |t|
    t.integer :sequence_no
    t.timestamps
  end
end