Sha256: 73fa0d1d1c1fca39366b6d752832ca826245ec0a60a50887e90dae1e127e9b57

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

class SpecMigration < ActiveRecord::Migration
  def self.up
    create_table :readers, :primary_key => 'number', :force => true do |t|
      t.string :name
    end

    create_table :different_readers, :primary_key => 'number', :force => true do |t|
      t.string :name
    end

    create_table :customers, :force => true do |t|
      t.string :type
    end

    create_table :documents, :primary_key => 'uid', :force => true do |t|
      t.string :type
      t.string :subject
      t.text :content
      t.datetime :created_at
      t.datetime :updated_at
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
unread-0.7.1 spec/support/spec_migration.rb
unread-0.7.0 spec/support/spec_migration.rb