Sha256: 2d34580fa9cd162f4ef6d1b72fec044fb53159b9763f351428fe34608fe2f96f
Contents?: true
Size: 545 Bytes
Versions: 5
Compression:
Stored size: 545 Bytes
Contents
class CreateUserfieldnames < ActiveRecord::Migration def self.up create_table :userfieldnames do |t| t.integer :account_id, :null => false t.string :field_name, :limit => 255, :null => false t.enum :field_type, :limit => [:textfield, :textarea, :select, :checkbox], :default=>:textfield t.boolean :field_is_mandatory, :default=>false t.timestamps end add_index :userfieldnames, [:field_name,:account_id], :unique => true end def self.down drop_table :userfieldnames end end
Version data entries
5 entries across 5 versions & 2 rubygems