Sha256: 65473b9b2b94ebad919c14fcbc5194b13fdb8367efb98c1e0985c07a45805b20

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

class CreateBravos < ActiveRecord::Migration[6.0]
  def change
    create_table :bravos do |t|
      t.boolean :a_boolean, default: false, null: false
      t.integer :an_integer, null: false
      t.decimal :a_decimal, null: false
      t.string :a_string, null: false
      t.integer :a_unique_value
      t.string :a_string_from_options
      t.integer :an_integer_from_options
      t.string :an_absent_value
      t.string :a_regex
      t.integer :an_enum
      t.json :a_json
      t.text :an_array

      t.timestamps
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dirty_seed-0.2.1 spec/dummy/db/migrate/20200923100328_create_bravos.rb
dirty_seed-0.2.0 spec/dummy/db/migrate/20200923100328_create_bravos.rb