more work on post uploads
This commit is contained in:
@@ -28,6 +28,7 @@ class CreateUsers < ActiveRecord::Migration
|
||||
t.column :default_image_size, :string, :null => false, :default => "medium"
|
||||
t.column :favorite_tags, :text
|
||||
t.column :blacklisted_tags, :text
|
||||
t.column :time_zone, :string, :null => false, :default => "Eastern Time (US & Canada)"
|
||||
end
|
||||
|
||||
execute "CREATE UNIQUE INDEX index_users_on_name ON users ((lower(name)))"
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
class CreateUploads < ActiveRecord::Migration
|
||||
def self.up
|
||||
create_table :uploads do |t|
|
||||
t.timestamps
|
||||
t.column :source, :string
|
||||
t.column :file_path, :string
|
||||
t.column :content_type, :string
|
||||
|
||||
t.column :rating, :character, :null => false
|
||||
t.column :uploader_id, :integer, :null => false
|
||||
t.column :uploader_ip_addr, "inet", :null => false
|
||||
t.column :tag_string, :text, :null => false
|
||||
t.column :status, :string, :null => false, :default => "pending"
|
||||
t.column :post_id, :integer
|
||||
t.column :md5_confirmation, :string
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user