added news updates ui
This commit is contained in:
@@ -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)"
|
||||
|
||||
12
db/migrate/20111101212358_create_news_updates.rb
Normal file
12
db/migrate/20111101212358_create_news_updates.rb
Normal 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
|
||||
Reference in New Issue
Block a user