Sha256: 14cecd9bb99b0ad30601eef7b1787cd500205e8d828ebe366338dcfacf25e081

Contents?: true

Size: 303 Bytes

Versions: 4

Compression:

Stored size: 303 Bytes

Contents

superclass = ActiveRecord::Migration
superclass = ActiveRecord::Migration[5.1] if superclass.respond_to?(:[])

class CreateNumericModels < superclass
  def change
    create_table :numeric_models do |t|
      t.integer :integer_field
      t.decimal :decimal_field

      t.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
human_attribute_values-1.2.2 test/dummy/db/migrate/20150131162551_create_numeric_models.rb
human_attribute_values-1.2.1 test/dummy/db/migrate/20150131162551_create_numeric_models.rb
human_attribute_values-1.2.0 test/dummy/db/migrate/20150131162551_create_numeric_models.rb
human_attribute_values-1.1.1 test/dummy/db/migrate/20150131162551_create_numeric_models.rb