Sha256: 958a76a13af50cad8db8091ec6fb6b125f1d4f05ac6893b5a225081f202cbb3b
Contents?: true
Size: 693 Bytes
Versions: 7
Compression:
Stored size: 693 Bytes
Contents
class CreateFields < ActiveRecord::Migration def self.up create_table :fields, force: true do |t| t.string :type t.references :field_group t.string :klass_name, limit: 32 t.integer :position t.string :name, limit: 64 t.string :label, limit: 128 t.string :hint t.string :placeholder t.string :as, limit: 32 t.string :collection t.boolean :disabled t.boolean :required t.integer :maxlength, limit: 4 t.timestamps end add_index :fields, :name add_index :fields, :klass_name add_index :fields, :field_group_id end def self.down drop_table :fields end end
Version data entries
7 entries across 7 versions & 2 rubygems