Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove old export fixtures and updated deploy

  • Loading branch information...
commit 714943927977a12e65213c603c06b79b55ad6415 1 parent bd98b44
@kf8a authored
View
1  .gitignore
@@ -17,3 +17,4 @@ nbproject/*
rcov/*
webrat.log
*.swp
+public/assets/*
View
2  Gemfile
@@ -32,7 +32,7 @@ group :development do
end
group :development, :test do
- gem 'sqlite3-ruby', :require => 'sqlite3'
+ gem 'sqlite3-ruby' #, :require => 'sqlite3'
gem 'autotest' #use with 'bundle exec autotest'
gem 'autotest-growl'
gem 'autotest-rails-pure' #to use Test:Unit
View
1  config/deploy.rb
@@ -1,4 +1,5 @@
require "bundler/capistrano"
+load 'deploy/assets'
set :application, "alpkem"
set :repository, "/Users/bohms/code/alpkem"
View
17 lib/tasks/extract_fixtures.rake
@@ -1,17 +0,0 @@
-desc 'Create YAML test fixtures from data in an existing database.
-Defaults to development database. Set Rails.env to override.'
-task :extract_fixtures => :environment do
- sql = "SELECT * FROM %s"
- skip_tables = ["schema_info"]
- ActiveRecord::Base.establish_connection
- (ActiveRecord::Base.connection.tables - skip_tables).each do |table_name|
- i = "000"
- File.open("#{Rails.root}/test/fixtures/#{table_name}.yml", 'w') do |file|
- data = ActiveRecord::Base.connection.select_all(sql % table_name)
- file.write data.inject({}) { |hash, record|
- hash["#{table_name}_#{i.succ!}"] = record
- hash
- }.to_yaml
- end
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.