Sha256: 5685ca542ccaa15d613c399270292bb83775dd7fad5ef61416b3a292a7359a12

Contents?: true

Size: 253 Bytes

Versions: 21

Compression:

Stored size: 253 Bytes

Contents

class CreatePreconditions < ActiveRecord::Migration
  def self.up
    create_table :preconditions do |t|
      t.string :description
      t.integer :scenario_id

      t.timestamps
    end
  end

  def self.down
    drop_table :preconditions
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
branston-0.6.6 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.5 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.4 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.3 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.2 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.1 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.6.0 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.5.2 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.5.1 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.5.0 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.6 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.5 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.4 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.3 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.2 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.1 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.4.0 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.3.6 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.3.4 lib/branston/db/migrate/20091127164446_create_preconditions.rb
branston-0.3.3 lib/branston/db/migrate/20091127164446_create_preconditions.rb