Changeset 9244 for trunk/activerecord/lib/active_record/schema_dumper.rb
- Timestamp:
- 04/09/08 16:20:15 (8 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activerecord/lib/active_record/schema_dumper.rb
r8124 r9244 31 31 @connection = connection 32 32 @types = @connection.native_database_types 33 @ info = @connection.select_one("SELECT * FROM schema_info")rescue nil33 @version = Migrator::current_version rescue nil 34 34 end 35 35 36 36 def header(stream) 37 define_params = @ info ? ":version => #{@info['version']}" : ""37 define_params = @version ? ":version => #{@version}" : "" 38 38 39 39 stream.puts <<HEADER … … 60 60 def tables(stream) 61 61 @connection.tables.sort.each do |tbl| 62 next if [ "schema_info", ignore_tables].flatten.any? do |ignored|62 next if ['schema_migrations', ignore_tables].flatten.any? do |ignored| 63 63 case ignored 64 64 when String; tbl == ignored