Class: SqlMigrations::Seed

Inherits:
SqlScript show all
Defined in:
lib/sql_migrations/seed.rb

Instance Attribute Summary

Attributes inherited from SqlScript

#date, #name, #time

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SqlScript

#execute, #initialize

Constructor Details

This class inherits a constructor from SqlMigrations::SqlScript

Class Method Details

.find(db_name) ⇒ Object



4
5
6
# File 'lib/sql_migrations/seed.rb', line 4

def self.find(db_name)
  super(db_name, :seed)
end

Instance Method Details

#to_sObject



8
9
10
# File 'lib/sql_migrations/seed.rb', line 8

def to_s
  "Seed data #{@name}, datetime: #{@date + @time}"
end