Sha256: be8eeadd648e682e496d07a9d4e1725411ffab9b2d070220beb39a5cd68e43b8

Contents?: true

Size: 906 Bytes

Versions: 5

Compression:

Stored size: 906 Bytes

Contents

ActiveRecord::Schema.define(:version => 0) do
  create_table :articles, :force => true do |t|
    t.string :string_1, :limit => 5
    t.string :string_2, :limit => 5

    if postgresql?
      # PostgreSQL doesn't support limits on text columns
      t.text :text_1
    else
      t.text :text_1, :limit => 5
    end

    t.date :date_1
  
    t.integer :integer_1, :limit => 5
    t.decimal :decimal_1, :precision => 5, :scale => 2
    t.float :float_1, :limit => 5

    if database_supports_arrays?
      t.string :array_1, :array => true, :limit => 5
    end
  end

  create_table :articles_high_limit, :force => true do |t|
    t.string :string_1
    t.string :string_2
    t.text :text_1
    t.date :date_1
    t.integer :integer_1
    t.decimal :decimal_1, :precision => 11, :scale => 2
    t.float :float_1

    if database_supports_arrays?
      t.string :array_1, :array => true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
validates_lengths_from_database-0.8.0 spec/db/schema.rb
validates_lengths_from_database-0.7.0 spec/db/schema.rb
validates_lengths_from_database-0.6.0 spec/db/schema.rb
validates_lengths_from_database-0.5.2 spec/db/schema.rb
validates_lengths_from_database-0.5.1 spec/db/schema.rb