Sha256: a01e88b0bafa7f02296c8702e894a563e1b8ba8e01a16d883fc629fe0da2b612
Contents?: true
Size: 525 Bytes
Versions: 2
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true class AddLargeTextFields < ActiveRecord::Migration def self.up create_table :large_text_fields do |t| t.string :field_name, null: false t.text :value, char_limit: 5_592_405, limit: 16_777_215 t.integer :owner_id, null: false t.string :owner_type, null: false end add_index :large_text_fields, %i[owner_type owner_id field_name], unique: true, name: 'large_text_field_by_owner_field' end def self.down drop_table :large_text_fields end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
large_text_field-1.0.0 | db/migrate/20110217210640_add_large_text_fields.rb |
large_text_field-0.3.2 | db/migrate/20110217210640_add_large_text_fields.rb |