dev_aliyun
parent
be80081623
commit
5551a1ae3b
@ -1,14 +1,14 @@
|
||||
class CreateShixunServiceConfigs < ActiveRecord::Migration
|
||||
def change
|
||||
# create_table :shixun_service_configs do |t|
|
||||
# t.references :shixun
|
||||
# t.integer :cpu_limit, :default => 1
|
||||
# t.integer :memory_limit, :default => 1024
|
||||
# t.integer :request_limit, :default => 10
|
||||
# t.float :lower_cpu_limit, :default => 0.1
|
||||
# t.integer :resource_limit, :default => 10000
|
||||
# t.references :mirror_repository
|
||||
# t.timestamps
|
||||
# end
|
||||
create_table :shixun_service_configs do |t|
|
||||
t.references :shixun
|
||||
t.integer :cpu_limit, :default => 1
|
||||
t.integer :memory_limit, :default => 1024
|
||||
t.integer :request_limit, :default => 10
|
||||
t.float :lower_cpu_limit, :default => 0.1
|
||||
t.integer :resource_limit, :default => 10000
|
||||
t.references :mirror_repository
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1,12 +1,12 @@
|
||||
class CreateUserAgents < ActiveRecord::Migration
|
||||
def change
|
||||
# create_table :user_agents do |t|
|
||||
# t.string :type
|
||||
# t.string :key
|
||||
# t.string :ip
|
||||
#
|
||||
# t.timestamps
|
||||
# end
|
||||
# add_index(:user_agents, :ip, :unique => true)
|
||||
create_table :user_agents do |t|
|
||||
t.string :type
|
||||
t.string :key
|
||||
t.string :ip
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index(:user_agents, :ip, :unique => true)
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in new issue