added news updates ui

This commit is contained in:
albert
2011-11-01 17:51:15 -04:00
parent b06857f8bd
commit 461fe9a6dc
21 changed files with 287 additions and 20 deletions

View File

@@ -26,7 +26,7 @@ class CreateUsers < ActiveRecord::Migration
t.column :receive_email_notifications, :boolean, :null => false, :default => false
t.column :comment_threshold, :integer, :null => false, :default => -1
t.column :always_resize_images, :boolean, :null => false, :default => false
t.column :default_image_size, :string, :null => false, :default => "medium"
t.column :default_image_size, :string, :null => false, :default => "large"
t.column :favorite_tags, :text
t.column :blacklisted_tags, :text
t.column :time_zone, :string, :null => false, :default => "Eastern Time (US & Canada)"

View File

@@ -0,0 +1,12 @@
class CreateNewsUpdates < ActiveRecord::Migration
def change
create_table :news_updates do |t|
t.column :message, :text, :null => false
t.column :creator_id, :integer, :null => false
t.column :updater_id, :integer, :null => false
t.timestamps
end
add_index :news_updates, :created_at
end
end