Class: CreateTests

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
vendor/plugins/engines/test/plugins/test_migration/db/migrate/001_create_tests.rb

Class Method Summary

Class Method Details

+ (Object) down



8
9
10
# File 'vendor/plugins/engines/test/plugins/test_migration/db/migrate/001_create_tests.rb', line 8

def self.down
  drop_table 'tests'
end

+ (Object) up



2
3
4
5
6
# File 'vendor/plugins/engines/test/plugins/test_migration/db/migrate/001_create_tests.rb', line 2

def self.up
  create_table 'tests' do |t|
    t.column 'name', :string
  end
end