Sha256: ded827f4372c321082af68a7383997cae29e8320dbe0d19e728d939324e0d19b

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

ActiveRecord::Schema.define(:version => 0) do
  create_table :spaceships, :force => true do |t| 
    t.string :type, :null => false, :default => 'Spaceship'
    t.integer :flags, :null => false, :default => 0
    t.string :incorrect_flags_column, :null => false, :default => ''
  end 

  create_table :spaceships_with_custom_flags_column, :force => true do |t| 
    t.integer :bits, :null => false, :default => 0
  end

  create_table :spaceships_with_2_custom_flags_column, :force => true do |t| 
    t.integer :bits, :null => false, :default => 0
    t.integer :commanders, :null => false, :default => 0
  end

  create_table :spaceships_with_3_custom_flags_column, :force => true do |t|
    t.integer :engines, :null => false, :default => 0
    t.integer :weapons, :null => false, :default => 0
    t.integer :hal3000, :null => false, :default => 0
  end

  create_table :spaceships_without_flags_column, :force => true do |t| 
  end

  create_table :spaceships_with_non_integer_column, :force => true do |t| 
    t.string :flags, :null => false, :default => 'A string'
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
flag_shih_tzu-0.3.2 test/schema.rb
flag_shih_tzu-0.3.1 test/schema.rb
flag_shih_tzu-0.3.0 test/schema.rb