Nicolae Claudius
13 years ago
14 changed files with 52 additions and 20 deletions
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 32 KiB |
@ -1,5 +1,6 @@ |
|||||||
.public .header-inner { |
.public .header-inner { |
||||||
width: 77%; |
width: 77%; |
||||||
|
min-width: 950px; |
||||||
margin: auto; |
margin: auto; |
||||||
position: relative; |
position: relative; |
||||||
} |
} |
||||||
|
@ -0,0 +1,14 @@ |
|||||||
|
|
||||||
|
user = User.find_by_email('user@entrydns.net') |
||||||
|
entrydns_org = Domain.find_by_name('entrydns.org') |
||||||
|
|
||||||
|
100.times do |
||||||
|
domain = Factory.build(:domain, :user => user) |
||||||
|
domain.setup(FactoryGirl.generate(:email)) |
||||||
|
domain.save! |
||||||
|
domain.soa_record.update_serial! |
||||||
|
end |
||||||
|
|
||||||
|
100.times do |
||||||
|
Factory.create(:a, :user => user, :domain => entrydns_org) |
||||||
|
end |
@ -1,3 +0,0 @@ |
|||||||
# Simple API |
|
||||||
|
|
||||||
curl -H "Accept: application/json" -X PUT -d "" http://entrydns/records/modify/TOKEN |
|
@ -0,0 +1,9 @@ |
|||||||
|
namespace :db do |
||||||
|
|
||||||
|
desc 'Create sample data from db/samples.rb' |
||||||
|
task :samples => :environment do |
||||||
|
samples_file = File.join(Rails.root, "db", "samples.rb") |
||||||
|
load(samples_file) if File.exist?(samples_file) |
||||||
|
end |
||||||
|
|
||||||
|
end |
Loading…
Reference in new issue