Sha256: 89b03d86051eaeb53ebccedf753fbb335e8207d2acb476d5eded23dbcc6e0951

Contents?: true

Size: 239 Bytes

Versions: 9

Compression:

Stored size: 239 Bytes

Contents

class CreateSalesReps < ActiveRecord::Migration
  def self.up
    create_table :sales_reps do |t|
      t.string :first_name
      t.string :last_name

      t.timestamps
    end
  end

  def self.down
    drop_table :sales_reps
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
datatable-0.2pre6 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.2pre5 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.2pre4 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.2pre3 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.2pre2 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.2pre1 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.1.1alpha4 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.1.1alpha1 example_app/db/migrate/20110429185742_create_sales_reps.rb
datatable-0.1.0alpha2 example_app/db/migrate/20110429185742_create_sales_reps.rb