Sha256: e1beb8ae1b7e4db4ca8068da527dc6525ba2bb9bd446f713786ee62129f98c52

Contents?: true

Size: 648 Bytes

Versions: 1

Compression:

Stored size: 648 Bytes

Contents

class CreateExamples < ActiveRecord::Migration[7.0]
  def change
    create_table :examples do |t|
      t.string :col_string, null: false
      t.text :col_text, null: false
      t.integer :col_integer, null: false
			t.integer :col_enum, null: false
      t.bigint :col_bigint, null: false
      t.float :col_float, null: false
      t.decimal :col_decimal, null: false
      t.json :col_json
      t.jsonb :col_jsonb
      t.binary :col_binary
      t.boolean :col_boolean
      t.date :col_date
      t.datetime :col_datetime
      t.timestamp :col_timestamp
			t.inet :col_inet
			t.cidr :col_cidr
			t.macaddr :col_macaddr
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ts_schema-0.1.1 test/dummy/db/migrate/20220401195333_create_examples.rb