Sha256: a95333e1bfc7762b0a442de17038e0a53f7cf416dcd984bffe1f0eceb7a0c307

Contents?: true

Size: 321 Bytes

Versions: 1

Compression:

Stored size: 321 Bytes

Contents

class CreateEmployees < ActiveRecord::Migration
  def self.up
    create_table :employees do |t|
      t.column :company_id, :integer, :null => false
      t.column :first_name, :string, :null => false
      t.column :last_name, :string, :null => false
    end
  end
  
  def self.down
    drop_table :employees
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
plugin_migrations-0.1.2 test/app_root/vendor/plugins/plugin_with_migrations/db/migrate/002_create_employees.rb