Sha256: 6f5cd56e7a576280d73118bbaf981e11d2277f18b7359c1165ad2714d450f164

Contents?: true

Size: 631 Bytes

Versions: 9

Compression:

Stored size: 631 Bytes

Contents

ActiveRecord::Base.establish_connection(
  :adapter  => 'sqlite3',
  :database => File.expand_path('../../test.db', __FILE__)
)

class CreateSchema < ActiveRecord::Migration
  def self.up
    create_table :users, :force => true do |t|
      t.string :first_name
      t.string :last_name
      t.timestamps
    end

    create_table :versions, :force => true do |t|
      t.belongs_to :versioned, :polymorphic => true
      t.belongs_to :user, :polymorphic => true
      t.string :user_name
      t.text :modifications
      t.integer :number
      t.integer :reverted_from
      t.string :tag
      t.timestamps
    end
  end
end

Version data entries

9 entries across 9 versions & 6 rubygems

Version Path
houston-vestal_versions-2.0.1 spec/support/schema.rb
houston-vestal_versions-2.0.0 spec/support/schema.rb
vestal_versions-2.0.0 spec/support/schema.rb
mil_vestal_versions-1.2.6 spec/support/schema.rb
geothird_vestal_versions-1.2.5 spec/support/schema.rb
geothird_vestal_versions-1.2.4 spec/support/schema.rb
geothird_vestal_versions-1.2.3 spec/support/schema.rb
set_vestal_versions-1.2.2 spec/support/schema.rb
razenha-vestal_versions-1.2.2 spec/support/schema.rb