Sha256: dee969cf911a678427cd8673382a49fab21572291d1393529b9cfc374d5a3ec3
Contents?: true
Size: 360 Bytes
Versions: 16
Compression:
Stored size: 360 Bytes
Contents
class CreatePreferences < ActiveRecord::Migration def self.up create_table :preferences do |t| t.references :user t.string :name, :limit => 32, :null => false, :default => "" t.text :value t.timestamps end add_index :preferences, [ :user_id, :name ] end def self.down drop_table :preferences end end
Version data entries
16 entries across 16 versions & 1 rubygems