Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F448947
20151028123326_powerdns.rb
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Thu, Apr 24, 12:11 PM
Size
275 B
Mime Type
text/x-ruby
Expires
Sat, Apr 26, 12:11 PM (1 d, 14 h)
Engine
blob
Format
Raw Data
Handle
212269
Attached To
rWEBDNS WebDNS (edet4)
20151028123326_powerdns.rb
View Options
class
Powerdns
<
ActiveRecord
::
Migration
def
up
raw_sql
=
File
.
read
Rails
.
root
.
join
(
'db'
,
'pdns_schema.sql'
)
raw_sql
.
split
(
';'
)
.
each
{
|
stmt
|
execute
(
stmt
.
strip
)
if
stmt
.
present?
}
end
def
down
fail
ActiveRecord
::
IrreversibleMigration
end
end
Event Timeline
Log In to Comment