Sha256: d66bdfc35e4851d49478fb1fc99faf9a43dfcfdbb5936326c2803658a32102ae

Contents?: true

Size: 267 Bytes

Versions: 9

Compression:

Stored size: 267 Bytes

Contents

class CreateCustomers < ActiveRecord::Migration
  def self.up
    create_table :customers do |t|
      t.integer :sales_rep_id
      t.string :first_name
      t.string :last_name

      t.timestamps
    end
  end

  def self.down
    drop_table :customers
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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