Sha256: 5ca42faf4bb0c73f8465a3e232d87d14c51b099739105277b658ff46b221c4bd

Contents?: true

Size: 208 Bytes

Versions: 3

Compression:

Stored size: 208 Bytes

Contents

class CreateOrders < ActiveRecord::Migration
  def self.up
    create_table :orders do |t|
      t.string :state
      t.references :car_part
    end
  end
  
  def self.down
    drop_table :orders
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pluginaweek-enumerate_by-0.4.3 test/app_root/db/migrate/004_create_orders.rb
enumerate_by-0.4.4 test/app_root/db/migrate/004_create_orders.rb
enumerate_by-0.4.3 test/app_root/db/migrate/004_create_orders.rb