-require 'migrate'
+require "migrate"
class UserEnhancements < ActiveRecord::Migration
def self.up
t.column "v", :string, :null => false
end
- add_primary_key "user_preferences", ["user_id", "k"]
+ add_primary_key "user_preferences", %w[user_id k]
create_table "user_tokens", :id => false do |t|
t.column "id", :bigserial, :primary_key => true, :null => false
add_column "users", "nearby", :integer, :default => 50
add_column "users", "pass_salt", :string
- User.update_all("nearby = 50");
+ User.update_all("nearby = 50")
end
def self.down